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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,7 @@ if ('getAppLevelAppearance' in systemPreferences) {
} }
if ('getEffectiveAppearance' in systemPreferences) { if ('getEffectiveAppearance' in systemPreferences) {
const nativeEAGetter = systemPreferences.getAppLevelAppearance; const nativeEAGetter = systemPreferences.getEffectiveAppearance;
Object.defineProperty(systemPreferences, 'effectiveAppearance', { Object.defineProperty(systemPreferences, 'effectiveAppearance', {
get: () => nativeEAGetter.call(systemPreferences) get: () => nativeEAGetter.call(systemPreferences)
}); });