diff --git a/src/lib/init.ts b/src/lib/init.ts index 74820ae..fcc0d1c 100644 --- a/src/lib/init.ts +++ b/src/lib/init.ts @@ -38,7 +38,7 @@ function configureGlobals() { win.svelteGet = get; } -export default async function init(isMobile: boolean = false) { +export default function init(isMobile: boolean = false) { configureLitegraph(isMobile); configureGlobals(); } diff --git a/src/main-desktop.ts b/src/main-desktop.ts index 5f24d2c..f91c7f9 100644 --- a/src/main-desktop.ts +++ b/src/main-desktop.ts @@ -5,7 +5,7 @@ import ComfyApp from '$lib/components/ComfyApp'; import init from '$lib/init'; import App from './App.svelte'; -await init(); +init(); const comfyApp = new ComfyApp(); (window as any).app = comfyApp; diff --git a/src/main-mobile.ts b/src/main-mobile.ts index cbf784c..c3ae907 100644 --- a/src/main-mobile.ts +++ b/src/main-mobile.ts @@ -13,7 +13,7 @@ import init from '$lib/init'; Framework7.use(Framework7Svelte); -await init(true); +init(true); const comfyApp = new ComfyApp(); (window as any).app = comfyApp;