Skip to content

Commit

Permalink
fix(components/Router): dont break in desktop ui
Browse files Browse the repository at this point in the history
  • Loading branch information
AAGaming00 committed Oct 5, 2024
1 parent bea9ac7 commit 980df68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/Router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ try {
logger.warn("Navigation interface failed to call GetFocusedWindowInstance", e);
}
if (!win) {
logger.warn("Navigation interface could not find any focused window. Falling back to GamepadUIMainWindowInstance");
win = Router.WindowStore?.GamepadUIMainWindowInstance;
logger.warn("Navigation interface could not find any focused window. Falling back to Main Window Instance");
win = Router.WindowStore?.GamepadUIMainWindowInstance || Router?.WindowStore?.SteamUIWindows?.[0];
}

if (win) {
Expand Down

0 comments on commit 980df68

Please sign in to comment.