forked from MapComplete/MapComplete
chore: automated housekeeping...
This commit is contained in:
parent
6bc8760adf
commit
0ad881316b
359 changed files with 2049 additions and 938 deletions
|
|
@ -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,
|
||||
},
|
||||
})
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue