Update src/platform/web/Platform.js
Co-authored-by: Bruno Windels <274386+bwindels@users.noreply.github.com>
This commit is contained in:
parent
d5bc9f5d7d
commit
4231037345
1 changed files with 1 additions and 1 deletions
|
@ -319,7 +319,7 @@ export class Platform {
|
|||
get preferredColorScheme() {
|
||||
if (window.matchMedia("(prefers-color-scheme: dark)").matches) {
|
||||
return COLOR_SCHEME_PREFERENCE.DARK;
|
||||
} else if (window.matchMedia("(prefers-color-scheme: light)")) {
|
||||
} else if (window.matchMedia("(prefers-color-scheme: light)").matches) {
|
||||
return COLOR_SCHEME_PREFERENCE.LIGHT;
|
||||
}
|
||||
return undefined;
|
||||
|
|
Reference in a new issue