mirror of https://github.com/PiyushXCoder/lupt.git
theme fixes
This commit is contained in:
parent
04e81e3ec0
commit
af7a174df8
|
|
@ -1,4 +1,4 @@
|
|||
if (getCookie('theme') == 'dark' || window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
||||
if (getCookie('theme') == 'dark' || (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches && getCookie('theme') != 'light')) {
|
||||
$('body').toggleClass('dark');
|
||||
}
|
||||
|
||||
|
|
@ -68,4 +68,4 @@ function getCookie(cname) {
|
|||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue