aboutsummaryrefslogtreecommitdiff
path: root/static/js/theme.min.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/theme.min.js')
-rw-r--r--static/js/theme.min.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/static/js/theme.min.js b/static/js/theme.min.js
new file mode 100644
index 0000000..8804552
--- /dev/null
+++ b/static/js/theme.min.js
@@ -0,0 +1 @@
+"switch"!==localStorage.getItem("theme")&&(localStorage.getItem("theme")||window.matchMedia("(prefers-color-scheme: dark)").matches)||document.documentElement.classList.add("switch"); \ No newline at end of file