From 883b089e0f0325577a4062d957418f16fadbc881 Mon Sep 17 00:00:00 2001 From: Milan Burda Date: Wed, 9 Dec 2020 06:59:01 +0100 Subject: [PATCH] fix: systemPreferences.effectiveAppearance returning systemPreferences.getAppLevelAppearance() (#26852) (#26882) --- lib/browser/api/system-preferences.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/browser/api/system-preferences.ts b/lib/browser/api/system-preferences.ts index 9ad72dec0ea24..bdc77c4dcd9c9 100644 --- a/lib/browser/api/system-preferences.ts +++ b/lib/browser/api/system-preferences.ts @@ -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) });