fix: Dark mode not working on dark browsers

Ironically, only if browser preference and wall config agreed both on dark mode,
it was not applied because there was no change detected by watch().
This commit is contained in:
Marcel Hellkamp 2023-08-07 18:21:30 +02:00
parent 576dce80b9
commit 63407ea0a1

View File

@ -59,7 +59,7 @@ const actualTheme = computed(() => {
})
watch(actualTheme, () => {
document.body!.parentElement!.dataset.bsTheme = actualTheme.value
})
}, {immediate: true})
// Update page title
watch(() => config.value?.title, () => document.title = config.value?.title || fallbackConfig.title)