aboutsummaryrefslogtreecommitdiff
path: root/site/static/docs
diff options
context:
space:
mode:
Diffstat (limited to 'site/static/docs')
-rw-r--r--site/static/docs/5.3/assets/js/color-modes.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/site/static/docs/5.3/assets/js/color-modes.js b/site/static/docs/5.3/assets/js/color-modes.js
index 32cbaa174..9f22daa1b 100644
--- a/site/static/docs/5.3/assets/js/color-modes.js
+++ b/site/static/docs/5.3/assets/js/color-modes.js
@@ -59,7 +59,7 @@
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', () => {
const storedTheme = getStoredTheme()
- if (storedTheme !== 'light' || storedTheme !== 'dark') {
+ if (storedTheme !== 'light' && storedTheme !== 'dark') {
setTheme(getPreferredTheme())
}
})