Files
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
406 B
JavaScript

// Reverts window-curvature/patch.js: ends a press, removes controls, style,
// reactions and the SendMessage hook, and resends the scene graph (stock
// radius back). Curvature on/off is stock state and stays.
// window.__sfuiWindowCurvatureState is kept. Safe when not patched.
(() => {
const s = window.__sfuiWindowCurvature;
if (!s) return 'not patched';
s.teardown();
return 'unpatched';
})()