fix: restore fullscreen pages on newer Steam clients (#962)

step one of these fixes
This commit is contained in:
virtudude
2026-09-14 17:53:55 -04:00
committed by GitHub
parent 1ea69d315a
commit 29665690d6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ class ErrorBoundaryHook extends Logger {
window.__ERRORBOUNDARY_HOOK_INSTANCE = this;
// valve writes only the sanest of code
const exp = /^\(\)=>\(.\|\|(?:.\(|\(.=)new .\),.\)$/;
const exp = /^\(\)=>\([\w$]+\|\|(?:[\w$]+\(|\([\w$]+=)new [\w$]+\),[\w$]+\)$/;
const initErrorReportingStore = findModuleExport(
(e) => typeof e == 'function' && e?.toString && exp.test(e.toString()),
);
+1 -1
View File
@@ -60,7 +60,7 @@ class RouterHook extends Logger {
if (reactRouterStackModule) {
this.Route =
Object.values(reactRouterStackModule).find(
(e) => typeof e == 'function' && /routePath:.\.match\?\.path./.test(e.toString()),
(e) => typeof e == 'function' && /routePath:[\w$]+\.match\?\.path./.test(e.toString()),
) ||
Object.values(reactRouterStackModule).find(
(e) => typeof e == 'function' && /routePath:null===\(.=.\.match\)/.test(e.toString()),