️ refactor: further minify theme initialization

main
welpo 2 years ago
parent 521a05b97f
commit 92e6af1d58
No known key found for this signature in database
GPG Key ID: A2F978CF4EC1F5A6

@ -1 +1 @@
!function(){const e=localStorage.getItem("theme");if(e)document.documentElement.setAttribute("data-theme",e);else{const t=window.matchMedia("(prefers-color-scheme: dark)").matches;document.documentElement.setAttribute("data-theme",t?"dark":"light")}}();
!function(){var e=localStorage.getItem("theme");e?document.documentElement.setAttribute("data-theme",e):(e=window.matchMedia("(prefers-color-scheme: dark)").matches,document.documentElement.setAttribute("data-theme",e?"dark":"light"))}();

Loading…
Cancel
Save