mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-13 04:05:04 +03:00
fix router hook on stable
This commit is contained in:
@@ -62,9 +62,13 @@ class RouterHook extends Logger {
|
|||||||
|
|
||||||
const reactRouterStackModule = findModuleByExport((e) => e == 'router-backstack', 20);
|
const reactRouterStackModule = findModuleByExport((e) => e == 'router-backstack', 20);
|
||||||
if (reactRouterStackModule) {
|
if (reactRouterStackModule) {
|
||||||
this.Route = Object.values(reactRouterStackModule).find(
|
this.Route =
|
||||||
(e) => typeof e == 'function' && /routePath:.\.match\?\.path./.test(e.toString()),
|
Object.values(reactRouterStackModule).find(
|
||||||
);
|
(e) => typeof e == 'function' && /routePath:.\.match\?\.path./.test(e.toString()),
|
||||||
|
) ||
|
||||||
|
Object.values(reactRouterStackModule).find(
|
||||||
|
(e) => typeof e == 'function' && /routePath:null===\(.=.\.match\)/.test(e.toString()),
|
||||||
|
);
|
||||||
if (!this.Route) {
|
if (!this.Route) {
|
||||||
this.error('Failed to find Route component');
|
this.error('Failed to find Route component');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user