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:
@@ -172,8 +172,6 @@
|
||||
|
||||
onMount(async () => {
|
||||
await app.setup();
|
||||
(window as any).app = app;
|
||||
(window as any).appPane = uiPane;
|
||||
|
||||
// await import('../../scss/ux.scss');
|
||||
|
||||
@@ -185,10 +183,10 @@
|
||||
}
|
||||
|
||||
$: if (uiTheme === "gradio-dark") {
|
||||
document.getElementById("app").classList.add("dark")
|
||||
document.getElementById("app-root").classList.add("dark")
|
||||
}
|
||||
else {
|
||||
document.getElementById("app").classList.remove("dark")
|
||||
document.getElementById("app-root").classList.remove("dark")
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user