summaryrefslogtreecommitdiffstats
path: root/assets/js/theme-switch.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--assets/js/theme-switch.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/assets/js/theme-switch.js b/assets/js/theme-switch.js
index 15c1ac2..c3f3949 100644
--- a/assets/js/theme-switch.js
+++ b/assets/js/theme-switch.js
@@ -1,4 +1,3 @@
-
if(localStorage.getItem("color-scheme") === null) {
const newColorScheme = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches ? "dark" : "light";
const newTextScheme = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches ? "Light mode" : "Dark mode";