mirror of
https://github.com/lhns/steam-frame-nix.git
synced 2026-10-06 03:00:13 +02:00
Document the patch calling convention once in lib/default.nix; patch headers say what, target, hook, state and contracts. Comments only, no code changes.
12 lines
464 B
JavaScript
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';
|
|
})()
|