diff options
| author | AAGaming <aa@mail.catvibers.me> | 2023-01-07 20:33:28 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-07 17:33:28 -0800 |
| commit | b72b32761058767d143e9ff08dc238c5ac9b777c (patch) | |
| tree | ab3cb1d855a20c37355f1b0c650647cd733a1d5d /frontend/src/plugin-loader.tsx | |
| parent | b8fdff80933b0164096c94358ab8123722906e0d (diff) | |
| download | decky-loader-b72b32761058767d143e9ff08dc238c5ac9b777c.tar.gz decky-loader-b72b32761058767d143e9ff08dc238c5ac9b777c.zip | |
Fix reloading UI on updates and restarting steam (#303)v2.4.9-pre1
Diffstat (limited to 'frontend/src/plugin-loader.tsx')
| -rw-r--r-- | frontend/src/plugin-loader.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/frontend/src/plugin-loader.tsx b/frontend/src/plugin-loader.tsx index 381d7954..c37e168c 100644 --- a/frontend/src/plugin-loader.tsx +++ b/frontend/src/plugin-loader.tsx @@ -21,6 +21,7 @@ import WithSuspense from './components/WithSuspense'; import Logger from './logger'; import { Plugin } from './plugin'; import RouterHook from './router-hook'; +import { deinitSteamFixes, initSteamFixes } from './steamfixes'; import { checkForUpdates } from './store'; import TabsHook from './tabs-hook'; import OldTabsHook from './tabs-hook.old'; @@ -33,10 +34,6 @@ const SettingsPage = lazy(() => import('./components/settings')); const FilePicker = lazy(() => import('./components/modals/filepicker')); -declare global { - interface Window {} -} - class PluginLoader extends Logger { private plugins: Plugin[] = []; private tabsHook: TabsHook | OldTabsHook = document.title == 'SP' ? new OldTabsHook() : new TabsHook(); @@ -92,6 +89,8 @@ class PluginLoader extends Logger { ); }); + initSteamFixes(); + initFilepickerPatches(); this.updateVersion(); @@ -184,6 +183,7 @@ class PluginLoader extends Logger { public deinit() { this.routerHook.removeRoute('/decky/store'); this.routerHook.removeRoute('/decky/settings'); + deinitSteamFixes(); deinitFilepickerPatches(); this.focusWorkaroundPatch?.unpatch(); } |
