forked from extern/fediwall
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:
parent
576dce80b9
commit
63407ea0a1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user