forked from MapComplete/MapComplete
Fix: actually parse theme file
This commit is contained in:
parent
3987322870
commit
3f80930d48
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
import MetaTagging from "./src/Logic/MetaTagging"
|
import MetaTagging from "./src/Logic/MetaTagging"
|
||||||
|
import ThemeConfig from "./src/Models/ThemeConfig/ThemeConfig"
|
||||||
import SingleThemeGui from "./src/UI/SingleThemeGui.svelte"
|
import SingleThemeGui from "./src/UI/SingleThemeGui.svelte"
|
||||||
|
|
||||||
|
|
||||||
|
@ -10,7 +11,7 @@ async function main() {
|
||||||
const childs = Array.from(target.children)
|
const childs = Array.from(target.children)
|
||||||
new SingleThemeGui({
|
new SingleThemeGui({
|
||||||
target,
|
target,
|
||||||
props: { theme },
|
props: { theme: new ThemeConfig(theme, true, {definitionRaw: theme}) },
|
||||||
})
|
})
|
||||||
childs.forEach(ch => target.removeChild(ch))
|
childs.forEach(ch => target.removeChild(ch))
|
||||||
Array.from(document.getElementsByClassName("delete-on-load")).forEach(el => {
|
Array.from(document.getElementsByClassName("delete-on-load")).forEach(el => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue