Files
lhns--steam-frame-nix/modules/steam-close-button/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

11 lines
408 B
JavaScript

// Reverts steam-close-button/patch.js (the X disappears). Never switches
// frames and keeps window.__sfuiSteamCloseState, so a re-injection continues;
// if removed while bar-only, the dashboard stays without an active frame
// until the next tab click or open. Safe when not patched.
(() => {
const s = window.__sfuiSteamClose;
if (!s) return 'not patched';
s.teardown();
return 'unpatched';
})()