diff options
| author | AAGaming <aagaming@riseup.net> | 2024-10-11 14:47:20 -0400 |
|---|---|---|
| committer | AAGaming <aagaming@riseup.net> | 2024-10-11 14:47:20 -0400 |
| commit | 43aa0497f448d979b3d84c357db082fd57ae6c68 (patch) | |
| tree | 516368db5aed70df3d805e7c0e9b1fca5f53ac0c /frontend/src/router-hook.tsx | |
| parent | 1781c19c11777e08bb078c7d5859fefef764ee78 (diff) | |
| download | decky-loader-43aa0497f448d979b3d84c357db082fd57ae6c68.tar.gz decky-loader-43aa0497f448d979b3d84c357db082fd57ae6c68.zip | |
prevent future issues where toString may not be a function (what)
Diffstat (limited to 'frontend/src/router-hook.tsx')
| -rw-r--r-- | frontend/src/router-hook.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/router-hook.tsx b/frontend/src/router-hook.tsx index 8cffb738..9612793a 100644 --- a/frontend/src/router-hook.tsx +++ b/frontend/src/router-hook.tsx @@ -135,7 +135,7 @@ class RouterHook extends Logger { private async patchDesktopRouter() { const root = getReactRoot(document.getElementById('root') as any); const findRouterNode = () => - findInReactTree(root, (node) => node?.elementType?.type?.toString()?.includes('bShowDesktopUIContent:')); + findInReactTree(root, (node) => node?.elementType?.type?.toString?.()?.includes('bShowDesktopUIContent:')); let routerNode = findRouterNode(); while (!routerNode) { this.warn('Failed to find Router node, reattempting in 5 seconds.'); |
