Louis Lam
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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, |
|
|
|
}; |
|
|
|
}, |
|
|
|