From 1921e7ec56b39d4a6af111a75cf74c495800abc6 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Mon, 10 Jul 2023 18:41:56 -0400 Subject: JS -> Python WS now functional --- frontend/src/plugin-loader.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'frontend/src/plugin-loader.tsx') 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() { -- cgit v1.2.3