Update web/templates/base.html
This commit is contained in:
parent
19637cf041
commit
aa7acf9868
@ -229,6 +229,13 @@
|
|||||||
window.addEventListener('blur', close);
|
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>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Loading…
Reference in New Issue
Block a user