icon formatting

This commit is contained in:
zoe 2022-04-10 21:57:17 +02:00
parent 8c62a099cc
commit 427d35661b
5 changed files with 45 additions and 19 deletions

View file

@ -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();