Spaces:
Running
Running
File size: 320 Bytes
b018397 | 1 2 3 4 5 6 7 8 | // Apply a saved colour theme before the page paints. "auto" follows the system.
(function () {
try {
var t = localStorage.getItem("taxonova-theme");
if (t === "light" || t === "dark") document.documentElement.setAttribute("data-theme", t);
} catch (e) { /* storage unavailable: follow the system */ }
})();
|