diff --git a/src/mixins/theme.js b/src/mixins/theme.js index 673a8caa6..5b4c831d7 100644 --- a/src/mixins/theme.js +++ b/src/mixins/theme.js @@ -2,7 +2,7 @@ export default { data() { return { - system: (window.matchMedia("(prefers-color-scheme: dark)")) ? "dark" : "light", + system: (window.matchMedia("(prefers-color-scheme: dark)").matches) ? "dark" : "light", userTheme: localStorage.theme, }; },