fix: systemPreferences.effectiveAppearance returning systemPreferences.getAppLevelAppearance() (#26852)

This commit is contained in:
Milan Burda
2020-12-08 08:07:04 +01:00
committed by GitHub
parent b788ceb7bd
commit ee0550efca

View File

@@ -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)
});