window object does weird things, rename root ID
when used with (window as any).app, it uses the element with id #app instead
This commit is contained in:
@@ -1,10 +1,15 @@
|
||||
import ComfyApp from '$lib/components/ComfyApp';
|
||||
import { configureLitegraph } from '$lib/init';
|
||||
import App from './App.svelte';
|
||||
|
||||
configureLitegraph()
|
||||
|
||||
const comfyApp = new ComfyApp();
|
||||
(window as any).app = comfyApp;
|
||||
|
||||
const app = new App({
|
||||
target: document.getElementById('app'),
|
||||
target: document.getElementById("app-root"),
|
||||
props: { app: comfyApp }
|
||||
})
|
||||
|
||||
export default app;
|
||||
|
||||
Reference in New Issue
Block a user