Browse Source

fix auto theme

pull/214/head
Louis Lam 3 years ago
committed by GitHub
parent
commit
7ca80fc086
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/mixins/theme.js

2
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,
};
},

Loading…
Cancel
Save