diff options
Diffstat (limited to 'packages/frontend/src/boot')
| -rw-r--r-- | packages/frontend/src/boot/common.ts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/packages/frontend/src/boot/common.ts b/packages/frontend/src/boot/common.ts index 71fd9bb54a..2b522d3f10 100644 --- a/packages/frontend/src/boot/common.ts +++ b/packages/frontend/src/boot/common.ts @@ -178,16 +178,13 @@ export async function common(createVue: () => Promise<App<Element>>) { window.document.documentElement.dataset.colorScheme = store.s.darkMode ? 'dark' : 'light'; if (!isSafeMode) { - const darkTheme = prefer.model('darkTheme'); - const lightTheme = prefer.model('lightTheme'); - - watch(darkTheme, (theme) => { + watch(prefer.r.darkTheme, (theme) => { if (store.s.darkMode) { applyTheme(theme ?? defaultDarkTheme); } }); - watch(lightTheme, (theme) => { + watch(prefer.r.lightTheme, (theme) => { if (!store.s.darkMode) { applyTheme(theme ?? defaultLightTheme); } |