Update web/templates/base.html

This commit is contained in:
Joshua Laymon 2025-08-20 13:17:20 +00:00
parent 19637cf041
commit aa7acf9868

View File

@ -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>