chore: automated housekeeping...

This commit is contained in:
Pieter Vander Vennet 2025-01-28 15:42:34 +01:00
parent 6bc8760adf
commit 0ad881316b
359 changed files with 2049 additions and 938 deletions

View file

@ -2,7 +2,6 @@ import DetermineTheme from "./Logic/DetermineTheme"
import SingleThemeGui from "./UI/SingleThemeGui.svelte"
import CustomThemeError from "./UI/CustomThemeError.svelte"
async function main() {
const target = document.getElementById("maindiv")
const childs = Array.from(target.children)
@ -10,7 +9,7 @@ async function main() {
const theme = await DetermineTheme.getTheme()
new SingleThemeGui({
target,
props: { theme }
props: { theme },
})
childs.forEach((ch) => target.removeChild(ch))
Array.from(document.getElementsByClassName("delete-on-load")).forEach((el) => {
@ -24,10 +23,9 @@ async function main() {
target,
props: {
stack: err.toString().split("\n"),
customDefinition
}
customDefinition,
},
})
}
}