Files
lhns--steam-frame-nix/modules/frame-controls/unpatch.js
T
Pierre Kisters 4c843c3ce4 Patch headers and comments: concise
Document the patch calling convention once in lib/default.nix; patch
headers say what, target, hook, state and contracts. Comments only, no
code changes.
2026-09-27 23:57:50 +02:00

12 lines
464 B
JavaScript

// Reverts frame-controls/patch.js: ends a long press, closes the popup, restores
// stock control lists, removes wrappers (a wrapper wrapped by something else
// since stays inert in the chain), listeners, style and the theater Float
// actions. Keeps window.__sfuiFrameControlsState and its localStorage mirror.
// Safe when not patched.
(() => {
const s = window.__sfuiFrameControls;
if (!s) return 'not patched';
s.teardown();
return 'unpatched';
})()