Skip to content

Commit

Permalink
fix(utils): add new nav root name
Browse files Browse the repository at this point in the history
  • Loading branch information
AAGaming00 committed Dec 14, 2024
1 parent d6ecba6 commit a43cd7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function findSP(): Window {
if (document.title == 'SP') return window;
// new (SP as popup)
const navTrees = getGamepadNavigationTrees();
return navTrees?.find((x: any) => x.m_ID == 'root_1_')?.Root?.Element?.ownerDocument?.defaultView;
return navTrees?.find((x: any) => x.m_ID == 'GamepadUI_Full_Root' || x.m_ID == 'root_1_')?.Root?.Element?.ownerDocument?.defaultView;
}

/**
Expand Down

0 comments on commit a43cd7f

Please sign in to comment.