mirror of
https://git.kittycat.homes/zoe/hugo-battheme.git
synced 2024-08-15 03:25:18 +00:00
icon formatting
This commit is contained in:
parent
8c62a099cc
commit
427d35661b
5 changed files with 45 additions and 19 deletions
|
@ -8,7 +8,7 @@ if (localStorage.getItem("dark")) {
|
|||
}
|
||||
checkbox.checked = localStorage.getItem("dark");
|
||||
|
||||
checkbox.addEventListener("click", function () {
|
||||
checkbox.addEventListener("change", function () {
|
||||
localStorage.setItem("dark", this.checked);
|
||||
if (this.checked) {
|
||||
switchToDark();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue