mirror of
https://github.com/lhns/steam-frame-nix.git
synced 2026-10-06 04:04:16 +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.
10 lines
337 B
JavaScript
10 lines
337 B
JavaScript
// Reverts show-all/patch.js (removes the empty iterator). Safe when not
|
|
// patched.
|
|
(() => {
|
|
const s = window.__sfuiShowAllApps;
|
|
if (!s) return 'not patched';
|
|
if (s.list && Object.prototype.hasOwnProperty.call(s.list, Symbol.iterator)) delete s.list[Symbol.iterator];
|
|
delete window.__sfuiShowAllApps;
|
|
return 'unpatched';
|
|
})()
|