Update web/templates/base.html
This commit is contained in:
parent
19637cf041
commit
aa7acf9868
@ -229,6 +229,13 @@
|
||||
window.addEventListener('blur', close);
|
||||
}
|
||||
})();
|
||||
|
||||
// Safe to include site-wide; it only adds a class.
|
||||
(function(){
|
||||
if (localStorage.getItem("darkMode") === "true") {
|
||||
document.body.classList.add("dark-mode");
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue
Block a user