From ee7b5849078a51a907c07e0051127e88ff4362d4 Mon Sep 17 00:00:00 2001
From: Pieter Vander Vennet "
+ "
"
)
.replace(
/.*\/src\/index\.ts.*/,
diff --git a/src/index.ts b/src/index.ts
index 1eac36b03..9728d5e15 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -44,6 +44,9 @@ async function main() {
const state = new ThemeViewState(layout, availableLayers)
const main = new SvelteUIElement(ThemeViewGUI, { state })
main.AttachTo("maindiv")
+ Array.from(document.getElementsByClassName("delete-on-load")).forEach(el => {
+ el.parentElement.removeChild(el)
+ })
} catch (err) {
console.error("Error while initializing: ", err, err.stack)
const customDefinition = DetermineLayout.getCustomDefinition()
diff --git a/src/index_theme.ts.template b/src/index_theme.ts.template
index 3ad3b9924..2c415d004 100644
--- a/src/index_theme.ts.template
+++ b/src/index_theme.ts.template
@@ -39,6 +39,9 @@ async function main() {
const state = new ThemeViewState(new LayoutConfig(