mirror of
https://github.com/lhns/steam-frame-nix.git
synced 2026-10-06 06:00:22 +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.
11 lines
408 B
JavaScript
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';
|
|
})()
|