11 lines
237 B
JavaScript
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;
|
|
}
|
|
})();
|