Skip to content

Commit

Permalink
Fix always-false boolean condition (twbs#38665)
Browse files Browse the repository at this point in the history
  • Loading branch information
battlesnake authored and romankupchak93 committed Jan 5, 2024
1 parent b34d7a8 commit ecb71e6
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 ecb71e6

Please sign in to comment.