summaryrefslogtreecommitdiff
path: root/frontend/src
diff options
context:
space:
mode:
authorBeebles <102569435+beebls@users.noreply.github.com>2023-02-17 18:27:20 -0700
committerGitHub <noreply@github.com>2023-02-17 17:27:20 -0800
commite1b138bcbdcb899e43166a9ece5173d0fc0cab0a (patch)
treeb7a1d23885e7030655f9e08802837e72e75adee6 /frontend/src
parentc6be8f6c1472379af8024e52a7db7e4db747979c (diff)
downloaddecky-loader-e1b138bcbdcb899e43166a9ece5173d0fc0cab0a.tar.gz
decky-loader-e1b138bcbdcb899e43166a9ece5173d0fc0cab0a.zip
Fix fullscreen route inject issues caused by Feb. 17th beta. (#372)v2.5.4-pre1v2.5.4
* remove gamepad ui * Refactor
Diffstat (limited to 'frontend/src')
-rw-r--r--frontend/src/router-hook.tsx8
1 files changed, 3 insertions, 5 deletions
diff --git a/frontend/src/router-hook.tsx b/frontend/src/router-hook.tsx
index bf3ae0cb..cfacaddd 100644
--- a/frontend/src/router-hook.tsx
+++ b/frontend/src/router-hook.tsx
@@ -123,11 +123,9 @@ class RouterHook extends Logger {
this.wrapperPatch = afterPatch(this.gamepadWrapper, 'render', (_: any, ret: any) => {
if (ret?.props?.children?.props?.children?.length == 5 || ret?.props?.children?.props?.children?.length == 4) {
const idx = ret?.props?.children?.props?.children?.length == 4 ? 1 : 2;
- if (
- ret.props.children.props.children[idx]?.props?.children?.[0]?.type?.type
- ?.toString()
- ?.includes('GamepadUI.Settings.Root()')
- ) {
+ const potentialSettingsRootString =
+ ret.props.children.props.children[idx]?.props?.children?.[0]?.type?.type?.toString() || '';
+ if (potentialSettingsRootString?.includes('Settings.Root()')) {
if (!this.router) {
this.router = ret.props.children.props.children[idx]?.props?.children?.[0]?.type;
this.routerPatch = afterPatch(this.router, 'type', (_: any, ret: any) => {