diff options
Diffstat (limited to 'frontend/src/utils')
| -rw-r--r-- | frontend/src/utils/windows.ts | 9 |
1 files changed, 0 insertions, 9 deletions
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; -} |
