Skip to content

Commit

Permalink
fix: dark mode logo
Browse files Browse the repository at this point in the history
  • Loading branch information
pateljannat committed Jul 8, 2024
1 parent dd38a01 commit 4898ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wiki/public/js/wiki.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ window.Wiki = class Wiki {
$(".navbar-brand img").data("alt-src", src);
}
}
localStorage.setItem("darkMode", $("body").hasClass("dark"));
const darkMode = localStorage.getItem("darkMode");

if (
Expand All @@ -85,7 +86,6 @@ window.Wiki = class Wiki {
$("body").toggleClass("dark");

});
localStorage.setItem("darkMode", $("body").hasClass("dark"));
}

add_link_to_headings() {
Expand Down

0 comments on commit 4898ceb

Please sign in to comment.