Revert "feat: Added default theme"

This reverts commit a11a99f92a.
This commit is contained in:
JY Hsu 2024-09-01 00:30:17 +08:00
parent a11a99f92a
commit 8c6aa5ac09
3 changed files with 3 additions and 12 deletions

View file

@ -12,7 +12,7 @@
<!--================= add analytics if enabled =========================-->
{{- partial "analytics.html" . -}}
<script>
theme = localStorage.getItem('darkmode:color-scheme') || document.getElementById('defaultTheme').innerText || "system"
theme = localStorage.getItem('darkmode:color-scheme') || 'system';
if (theme == 'system') {
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
theme = 'dark';