mirror of
https://github.com/afoim/fuwari.git
synced 2026-01-31 09:03:18 +08:00
fix: 将默认主题从DEFAULT_THEME改为AUTO_MODE
This commit is contained in:
@@ -137,7 +137,7 @@ const bannerOffset =
|
|||||||
localStorage.setItem('theme', DARK_MODE);
|
localStorage.setItem('theme', DARK_MODE);
|
||||||
} else {
|
} else {
|
||||||
// Load the theme from local storage
|
// Load the theme from local storage
|
||||||
const theme = localStorage.getItem('theme') || DEFAULT_THEME;
|
const theme = localStorage.getItem('theme') || AUTO_MODE;
|
||||||
switch (theme) {
|
switch (theme) {
|
||||||
case LIGHT_MODE:
|
case LIGHT_MODE:
|
||||||
document.documentElement.classList.remove('dark');
|
document.documentElement.classList.remove('dark');
|
||||||
|
|||||||
Reference in New Issue
Block a user