diff options
Diffstat (limited to 'js/auto_darkmode.js')
-rw-r--r-- | js/auto_darkmode.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/auto_darkmode.js b/js/auto_darkmode.js index 51a8fd7..0dc5a3a 100644 --- a/js/auto_darkmode.js +++ b/js/auto_darkmode.js @@ -7,6 +7,7 @@ function setCookie(name,value,days) { } document.cookie = name + "=" + (value || "") + expires + "; path=/"; } + function getCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); @@ -52,7 +53,6 @@ function switchDarkmodeSetting() { } } - const check_darkmode = getDarkmodeSetting(); const darkmode_prefer = window.matchMedia('(prefers-color-scheme: dark)').matches; if (darkmode_prefer && check_darkmode === null) { |