diff options
author | hugo-profile bot <githubactionsbot@users.noreply.github.com> | 2022-01-26 15:04:07 +0300 |
---|---|---|
committer | hugo-profile bot <githubactionsbot@users.noreply.github.com> | 2022-01-26 15:04:07 +0300 |
commit | 1a34fecb59a00191882d01e1a8849528a3b3fdec (patch) | |
tree | 9c5920cdf558ff1913dc7dbacdbb752a7e9a48c2 /js/auto_darkmode.js | |
parent | ba338fda5abcd65f55b18c9ae236f897e5b4d4c7 (diff) |
deploy: d159cfb59462feffc775440f014c6d3c30bae5bedemo
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) { |