Files
ddc/web/static/js/theme.js
T
2026-10-25 20:24:50 -04:00

11 lines
237 B
JavaScript

(function () {
try {
var theme = localStorage.getItem("ddc-theme");
if (theme === "light" || theme === "dark") {
document.documentElement.setAttribute("data-theme", theme);
}
} catch (error) {
return;
}
})();