mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
Fix always-false boolean condition (#38665)
This commit is contained in:
parent
8aef61dda8
commit
ad9cb223a9
@ -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())
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user