Skip to content

Commit

Permalink
fix: systemPreferences.effectiveAppearance returning systemPreference…
Browse files Browse the repository at this point in the history
…s.getAppLevelAppearance() (#26878)

Co-authored-by: Milan Burda <milan.burda@gmail.com>
  • Loading branch information
trop[bot] and miniak committed Dec 9, 2020
1 parent 2c325cd commit 90a96c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/browser/api/system-preferences.ts
Expand Up @@ -11,7 +11,7 @@ if ('getAppLevelAppearance' in systemPreferences) {
}

if ('getEffectiveAppearance' in systemPreferences) {
const nativeEAGetter = systemPreferences.getAppLevelAppearance;
const nativeEAGetter = systemPreferences.getEffectiveAppearance;
Object.defineProperty(systemPreferences, 'effectiveAppearance', {
get: () => nativeEAGetter.call(systemPreferences)
});
Expand Down

0 comments on commit 90a96c0

Please sign in to comment.