keyrune/docs/assets/js/first.js

5 lines
218 B
JavaScript
Raw Permalink Normal View History

(function () {
var mode = localStorage.getItem("mode");
if (mode === "dark") document.documentElement.dataset.mode = 'dark';
else if (mode === "light") document.documentElement.dataset.mode = 'light';
})();