mirror of
https://github.com/kristoferssolo/kristofersxyz.git
synced 2026-03-22 00:26:20 +00:00
Forgot to save
This commit is contained in:
@@ -27,13 +27,13 @@ $(document).ready(function () {
|
||||
}
|
||||
})
|
||||
|
||||
// if (window.matchMedia) {
|
||||
// if (window.matchMedia("(prefers-color-scheme: dark)").matches) {
|
||||
// disable_light_mode()
|
||||
// } else {
|
||||
// enable_light_mode()
|
||||
// }
|
||||
// }
|
||||
if (window.matchMedia) {
|
||||
if (window.matchMedia("(prefers-color-scheme: dark)").matches) {
|
||||
disable_light_mode()
|
||||
} else {
|
||||
enable_light_mode()
|
||||
}
|
||||
}
|
||||
|
||||
$("#color-mode-toggle").click(() => {
|
||||
lightmode = localStorage.getItem("lightmode")
|
||||
|
||||
Reference in New Issue
Block a user