diff options
| author | AAGaming <aagaming@riseup.net> | 2026-11-21 21:57:39 -0500 |
|---|---|---|
| committer | AAGaming <aagaming@riseup.net> | 2026-11-21 21:57:39 -0500 |
| commit | 7b68170549be09152378bec340ee478a0509231c (patch) | |
| tree | 032faa7d400281138a522384ae9e48836aaae575 /frontend/src/hooks/router.tsx | |
| parent | a2bdcbeb01eb7bf315fb0d89e919934a927921ab (diff) | |
| download | decky-loader-7b68170549be09152378bec340ee478a0509231c.tar.gz decky-loader-7b68170549be09152378bec340ee478a0509231c.zip | |
small cleanups
Diffstat (limited to 'frontend/src/hooks/router.tsx')
| -rw-r--r-- | frontend/src/hooks/router.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/hooks/router.tsx b/frontend/src/hooks/router.tsx index 0c8eb01a..95fd8eeb 100644 --- a/frontend/src/hooks/router.tsx +++ b/frontend/src/hooks/router.tsx @@ -56,7 +56,7 @@ class RouterHook extends Logger { window.__ROUTER_HOOK_INSTANCE?.deinit?.(); window.__ROUTER_HOOK_INSTANCE = this; - this.Route = findVar((e) => /routePath:[\w$]+\.match\?\.path./.test(e.toString())); + this.Route = findVar((e) => typeof e == 'function' && /routePath:[\w$]+\.match\?\.path./.test(e.toString())); if (!this.Route) { this.error('Failed to find Route component'); } |
