mirror of
https://github.com/defnull/fediwall.git
synced 2024-11-21 15:13:20 +01:00
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