newblog/static/js/theme.min.js
2024-07-01 13:20:09 +00:00

1 line
183 B
JavaScript

"switch"!==localStorage.getItem("theme")&&(localStorage.getItem("theme")||window.matchMedia("(prefers-color-scheme: dark)").matches)||document.documentElement.classList.add("switch");