diff options
Diffstat (limited to 'frontend/src/steamfixes/reload.ts')
| -rw-r--r-- | frontend/src/steamfixes/reload.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/frontend/src/steamfixes/reload.ts b/frontend/src/steamfixes/reload.ts new file mode 100644 index 00000000..e31f78fc --- /dev/null +++ b/frontend/src/steamfixes/reload.ts @@ -0,0 +1,14 @@ +import Logger from '../logger'; + +const logger = new Logger('ReloadSteamFix'); + +export default function reloadFix() { + // Hack to unbreak the ui when reloading it + if (window.FocusNavController?.m_rgAllContexts?.length == 0) { + SteamClient.URL.ExecuteSteamURL('steam://open/settings'); + logger.log('Applied UI reload fix.'); + } + + // This steamfix does not need to deinit. + return () => {}; +} |
