From f9624a0859107e781312a4e10453647ea8029888 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Wed, 22 Feb 2023 22:03:19 -0500 Subject: how did this ever happen --- frontend/src/utils/windows.ts | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 frontend/src/utils/windows.ts (limited to 'frontend/src/utils/windows.ts') diff --git a/frontend/src/utils/windows.ts b/frontend/src/utils/windows.ts deleted file mode 100644 index a08f304a..00000000 --- a/frontend/src/utils/windows.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { getFocusNavController } from '../../../../lib/dist'; - -export function findSP(): Window { - // old (SP as host) - if (document.title == 'SP') return window; - // new (SP as popup) - return getFocusNavController().m_ActiveContext.m_rgGamepadNavigationTrees.find((x: any) => x.m_ID == 'root_1_').Root - .Element.ownerDocument.defaultView; -} -- cgit v1.2.3