fix extraction leak, dead deps, logging, and frontend races
This commit is contained in:
@@ -40,6 +40,10 @@
|
||||
|
||||
onMount(async () => { cfg = await api.getConfig(); initialCfg = structuredClone(cfg) })
|
||||
|
||||
$effect(() => {
|
||||
if (cfg) document.documentElement.setAttribute("data-theme", cfg.theme)
|
||||
})
|
||||
|
||||
async function save() {
|
||||
if (!cfg) return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user