Skip to content

Commit

Permalink
New release [format code]
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorKowalczyk committed Feb 22, 2022
1 parent 0cc49c2 commit 5e02b66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/js/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const toggletheme = document.querySelector('.theme-switch input[type="checkbox"]');
//localStorage.setItem("theme", "dark"); // Default theme
//const currenttheme = localStorage.getItem("theme");
if(localStorage.getItem("theme")) {
currenttheme = localStorage.getItem("theme");
if (localStorage.getItem("theme")) {
currenttheme = localStorage.getItem("theme");
} else {
currenttheme = "dark";
currenttheme = "dark";
}

if (currenttheme) {
Expand Down

0 comments on commit 5e02b66

Please sign in to comment.