mirror of
https://github.com/welpo/tabi.git
synced 2025-10-10 23:38:53 +02:00
⚡️ refactor: further minify theme initialization
This commit is contained in:
parent
521a05b97f
commit
92e6af1d58
1 changed files with 1 additions and 1 deletions
2
static/js/initializeTheme.min.js
vendored
2
static/js/initializeTheme.min.js
vendored
|
@ -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…
Add table
Add a link
Reference in a new issue