summaryrefslogtreecommitdiffstats
path: root/assets/js/theme-switch.js
diff options
context:
space:
mode:
authorSimone Bortolin <simonebortolin@users.noreply.github.com>2022-08-04 19:50:30 +0200
committerSimone Bortolin <simonebortolin@users.noreply.github.com>2022-12-19 22:53:27 +0100
commit55a7e9286ad685d468e11c1212a3f3e5e9d98a81 (patch)
tree99061eeb8fb254b6ad3fad953920ac3b6006078e /assets/js/theme-switch.js
parentfix user and psw (diff)
parentMerge branch 'main' of github.com:hack-gpon/hack-gpon.github.io (diff)
downloadhack-gpon.github.io-55a7e9286ad685d468e11c1212a3f3e5e9d98a81.tar
hack-gpon.github.io-55a7e9286ad685d468e11c1212a3f3e5e9d98a81.tar.gz
hack-gpon.github.io-55a7e9286ad685d468e11c1212a3f3e5e9d98a81.tar.bz2
hack-gpon.github.io-55a7e9286ad685d468e11c1212a3f3e5e9d98a81.tar.lz
hack-gpon.github.io-55a7e9286ad685d468e11c1212a3f3e5e9d98a81.tar.xz
hack-gpon.github.io-55a7e9286ad685d468e11c1212a3f3e5e9d98a81.tar.zst
hack-gpon.github.io-55a7e9286ad685d468e11c1212a3f3e5e9d98a81.zip
Diffstat (limited to 'assets/js/theme-switch.js')
-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";