mirror of
https://github.com/lhns/steam-frame-nix.git
synced 2026-10-06 05:00:24 +02:00
steamFrame.uiPatches.patches registers JS patches that the steam-ui-patches user service keeps injected into Steam's (or SteamVR's) web UI over the local CEF DevTools ports and reverts when it stops. steamFrame.launcherMenu uses it for the VR "+" menu: sort = true sorts the programs by name; pinDesktop = "top" / "bottom" pins Desktop above or below the scrolling list.
10 lines
370 B
JavaScript
10 lines
370 B
JavaScript
// Reverts order/patch.js (restores the original
|
|
// SteamClient.Apps.ScanForInstalledNonSteamApps). Safe when not patched.
|
|
(() => {
|
|
const Apps = window.SteamClient?.Apps;
|
|
const f = Apps?.ScanForInstalledNonSteamApps;
|
|
if (f?.__sfuiPatch !== 'launcher-menu-order') return 'not patched';
|
|
Apps.ScanForInstalledNonSteamApps = f.__sfuiOrig;
|
|
return 'unpatched';
|
|
})()
|