chore: update dependency refs-cli to v1.4.1 4d813c765f

This commit is contained in:
jaywcjlove
2023-06-06 06:04:26 +00:00
parent 9f932afb9a
commit 7e9fc4b991
148 changed files with 1948 additions and 321 deletions

View File

@ -1,4 +1,4 @@
const LOCAL_NANE = '_dark_mode_theme_'
const LOCAL_NANE = '_dark_mode_theme_';
const rememberedValue = localStorage.getItem(LOCAL_NANE);
if (rememberedValue && ['light', 'dark'].includes(rememberedValue)) {
document.documentElement.setAttribute('data-color-mode', rememberedValue);
@ -9,4 +9,4 @@ button.onclick = () => {
const mode = theme === 'light' ? 'dark' : 'light';
document.documentElement.setAttribute('data-color-mode', mode);
localStorage.setItem(LOCAL_NANE, mode);
}
};