diff options
| author | AAGaming <aa@mail.catvibers.me> | 2023-02-22 22:00:23 -0500 |
|---|---|---|
| committer | AAGaming <aa@mail.catvibers.me> | 2023-02-22 22:00:30 -0500 |
| commit | 97bb3fa4c879cf2a517e59b1f7177c9e49e0a692 (patch) | |
| tree | 5e60e481a02d31ac4c88a780bdd853a6906a4b67 /frontend/src/utils/windows.ts | |
| parent | 611245aec9c056383692fac8a1214efd4718449f (diff) | |
| download | decky-loader-97bb3fa4c879cf2a517e59b1f7177c9e49e0a692.tar.gz decky-loader-97bb3fa4c879cf2a517e59b1f7177c9e49e0a692.zip | |
Fix loader on feb 22 2023 beta
Diffstat (limited to 'frontend/src/utils/windows.ts')
| -rw-r--r-- | frontend/src/utils/windows.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/frontend/src/utils/windows.ts b/frontend/src/utils/windows.ts index 2b5181d8..a08f304a 100644 --- a/frontend/src/utils/windows.ts +++ b/frontend/src/utils/windows.ts @@ -1,7 +1,9 @@ +import { getFocusNavController } from '../../../../lib/dist'; + export function findSP(): Window { // old (SP as host) if (document.title == 'SP') return window; // new (SP as popup) - return FocusNavController.m_ActiveContext.m_rgGamepadNavigationTrees.find((x: any) => x.m_ID == 'root_1_').Root + return getFocusNavController().m_ActiveContext.m_rgGamepadNavigationTrees.find((x: any) => x.m_ID == 'root_1_').Root .Element.ownerDocument.defaultView; } |
