Skip to content

Commit

Permalink
fix: systemPreferences.effectiveAppearance returning systemPreference…
Browse files Browse the repository at this point in the history
…s.getAppLevelAppearance() (#26852) (#26881)
  • Loading branch information
miniak committed Dec 8, 2020
1 parent 84ce462 commit 72511cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/browser/api/system-preferences.ts
Expand Up @@ -16,7 +16,7 @@ if ('getAppLevelAppearance' in systemPreferences) {
}

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

0 comments on commit 72511cc

Please sign in to comment.