From aa7acf98682bade5c2139536bccabe35c9f924bb Mon Sep 17 00:00:00 2001 From: Joshua Laymon Date: Wed, 20 Aug 2025 13:17:20 +0000 Subject: [PATCH] Update web/templates/base.html --- web/templates/base.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/web/templates/base.html b/web/templates/base.html index 4daa42f..dcd9bc1 100644 --- a/web/templates/base.html +++ b/web/templates/base.html @@ -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"); + } + })(); \ No newline at end of file