aboutsummaryrefslogtreecommitdiff
path: root/static/theme.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/theme.js')
-rw-r--r--static/theme.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/static/theme.js b/static/theme.js
deleted file mode 100644
index 5f6f0f6..0000000
--- a/static/theme.js
+++ /dev/null
@@ -1,4 +0,0 @@
-// enforce local storage setting but also fallback to user-agent preferences
-if (localStorage.getItem('theme') === 'light' || (!localStorage.getItem('theme') && !window.matchMedia("(prefers-color-scheme: dark)").matches)) {
- document.documentElement.classList.add('light');
-}