diff --git a/wiki/public/js/wiki.js b/wiki/public/js/wiki.js index f3ac9996..d8d48ecb 100644 --- a/wiki/public/js/wiki.js +++ b/wiki/public/js/wiki.js @@ -84,8 +84,8 @@ window.Wiki = class Wiki { $("body").toggleClass("dark"); - localStorage.setItem("darkMode", $("body").hasClass("dark")); }); + localStorage.setItem("darkMode", $("body").hasClass("dark")); } add_link_to_headings() {