mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-10-03 10:29:35 +00:00
fix: restore fullscreen pages on newer Steam clients (#962)
step one of these fixes
This commit is contained in:
@@ -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()),
|
||||
);
|
||||
|
||||
@@ -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()),
|
||||
|
||||
Reference in New Issue
Block a user