1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-17 19:06:40 +02:00

Fix always-false boolean condition (#38665)

This commit is contained in:
Mark Cowan
2023-05-30 09:00:26 +03:00
committed by GitHub
parent 8aef61dda8
commit ad9cb223a9

View File

@@ -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())
}
})