Files

3 lines
194 B
JavaScript

/* Apply the saved light/dark choice before the page paints (no flash). */
try{var t=localStorage.getItem('theme');if(t==='light'||t==='dark')document.documentElement.dataset.theme=t}catch(e){}