From 97bb3fa4c879cf2a517e59b1f7177c9e49e0a692 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Wed, 22 Feb 2023 22:00:23 -0500 Subject: Fix loader on feb 22 2023 beta --- frontend/src/utils/windows.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'frontend/src/utils/windows.ts') 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; } -- cgit v1.2.3