From d0ede35e899f885ef3374c0ec90564ca3bbf998c Mon Sep 17 00:00:00 2001 From: patak Date: Tue, 2 May 2023 14:13:53 +0200 Subject: [PATCH] fix: respect zenMode preference default --- plugins/setup-global-effects.client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/setup-global-effects.client.ts b/plugins/setup-global-effects.client.ts index ada7198a..832dc262 100644 --- a/plugins/setup-global-effects.client.ts +++ b/plugins/setup-global-effects.client.ts @@ -10,7 +10,7 @@ export default defineNuxtPlugin(() => { html.style.setProperty('--font-size', fontSize ? (oldFontSizeMap[fontSize as OldFontSize] ?? fontSize) : DEFAULT_FONT_SIZE) }) watchEffect(() => { - html.classList.toggle('zen', userSettings.value.preferences.zenMode) + html.classList.toggle('zen', getPreferences(userSettings.value, 'zenMode')) }) watchEffect(() => { Object.entries(userSettings.value.themeColors || {}).forEach(([k, v]) => html.style.setProperty(k, v))