mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-09-15 07:56:58 +08:00
fix auto theme
This commit is contained in:
@@ -2,7 +2,7 @@ export default {
|
|||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
system: (window.matchMedia("(prefers-color-scheme: dark)")) ? "dark" : "light",
|
system: (window.matchMedia("(prefers-color-scheme: dark)").matches) ? "dark" : "light",
|
||||||
userTheme: localStorage.theme,
|
userTheme: localStorage.theme,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user