Skip to content

Commit

Permalink
Fix always-false boolean condition (#38665)
Browse files Browse the repository at this point in the history
  • Loading branch information
battlesnake authored May 30, 2023
1 parent 8aef61d commit ad9cb22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/static/docs/5.3/assets/js/color-modes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
})
Expand Down

0 comments on commit ad9cb22

Please sign in to comment.