summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--frontend/src/router-hook.tsx10
1 files changed, 7 insertions, 3 deletions
diff --git a/frontend/src/router-hook.tsx b/frontend/src/router-hook.tsx
index cc00643a..8cffb738 100644
--- a/frontend/src/router-hook.tsx
+++ b/frontend/src/router-hook.tsx
@@ -62,9 +62,13 @@ class RouterHook extends Logger {
const reactRouterStackModule = findModuleByExport((e) => e == 'router-backstack', 20);
if (reactRouterStackModule) {
- this.Route = Object.values(reactRouterStackModule).find(
- (e) => typeof e == 'function' && /routePath:.\.match\?\.path./.test(e.toString()),
- );
+ this.Route =
+ 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) {
this.error('Failed to find Route component');
}