mirror of
https://github.com/kristoferssolo/kristofersxyz.git
synced 2025-10-21 18:30:34 +00:00
Forgot to save
This commit is contained in:
parent
17476e893e
commit
4a1cdd1236
@ -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")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user