dropdown v3 #44
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user