V2: Added Webserver for faster formatting

This commit is contained in:
Media
2026-07-25 15:13:23 -05:00
parent eed911cffa
commit 3eab672c6c
22 changed files with 3737 additions and 128 deletions
+15
View File
@@ -0,0 +1,15 @@
(() => {
const allowedThemes = new Set(["system", "light", "dark"]);
let theme = "system";
try {
const savedTheme = window.localStorage.getItem("roster-theme");
if (allowedThemes.has(savedTheme)) {
theme = savedTheme;
}
} catch {
// Storage can be unavailable in hardened or private browsing contexts.
}
document.documentElement.dataset.theme = theme;
})();