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