Chore: small refactorings

This commit is contained in:
Pieter Vander Vennet 2025-01-22 02:27:26 +01:00
parent 176a7d655b
commit 4525a9d5ed
2 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,5 @@
import SvelteUIElement from "./Base/SvelteUIElement"
import { default as StatisticsSvelte } from "../UI/Statistics/StatisticsGui.svelte"
new SvelteUIElement(StatisticsSvelte).AttachTo("main")
const target = document.getElementById("main")
target.innerHTML = ""
new StatisticsSvelte({ target })

View file

@ -52,7 +52,6 @@ async function main() {
DetermineTheme.getTheme(),
await getAvailableLayers(),
])
availableLayers?.delete("cycle_highways") // TODO remove after next cache.mapcomplete.org update
console.log("The available layers on server are", Array.from(availableLayers))
const state = new ThemeViewState(theme, availableLayers)
const target = document.getElementById("maindiv")