diff options
| author | AAGaming <aa@mail.catvibers.me> | 2023-07-10 18:41:56 -0400 |
|---|---|---|
| committer | marios8543 <marios8543@gmail.com> | 2023-11-14 00:04:56 +0200 |
| commit | 1921e7ec56b39d4a6af111a75cf74c495800abc6 (patch) | |
| tree | 216d56a2cda1db60d148fa743719766b3c7f6fe0 /frontend/src/plugin-loader.tsx | |
| parent | 05b41b341027dc80e62935a2d0a953c847bdb44b (diff) | |
| download | decky-loader-1921e7ec56b39d4a6af111a75cf74c495800abc6.tar.gz decky-loader-1921e7ec56b39d4a6af111a75cf74c495800abc6.zip | |
JS -> Python WS now functional
Diffstat (limited to 'frontend/src/plugin-loader.tsx')
| -rw-r--r-- | frontend/src/plugin-loader.tsx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/frontend/src/plugin-loader.tsx b/frontend/src/plugin-loader.tsx index e5f69f1f..86592016 100644 --- a/frontend/src/plugin-loader.tsx +++ b/frontend/src/plugin-loader.tsx @@ -34,6 +34,7 @@ import Toaster from './toaster'; import { VerInfo, callUpdaterMethod } from './updater'; import { getSetting, setSetting } from './utils/settings'; import TranslationHelper, { TranslationClass } from './utils/TranslationHelper'; +import { WSRouter } from './wsrouter'; const StorePage = lazy(() => import('./components/store/Store')); const SettingsPage = lazy(() => import('./components/settings')); @@ -48,6 +49,8 @@ class PluginLoader extends Logger { public toaster: Toaster = new Toaster(); private deckyState: DeckyState = new DeckyState(); + public ws: WSRouter = new WSRouter(); + public hiddenPluginsService = new HiddenPluginsService(this.deckyState); public notificationService = new NotificationService(this.deckyState); @@ -102,9 +105,11 @@ class PluginLoader extends Logger { initFilepickerPatches(); - this.getUserInfo(); + this.ws.connect().then(() => { + this.getUserInfo(); - this.updateVersion(); + this.updateVersion(); + }); } public async getUserInfo() { |
