mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-10 21:54:41 +08:00
fix auto theme
This commit is contained in:
@@ -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,
|
||||
};
|
||||
},
|
||||
|
Reference in New Issue
Block a user