Files
lhns--steam-frame-nix/modules/launcher-menu/show-all/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

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';
})()