From 90a96c0b73a893a7e70026a497d75a74b084671c Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Wed, 9 Dec 2020 14:58:44 +0900 Subject: [PATCH] fix: systemPreferences.effectiveAppearance returning systemPreferences.getAppLevelAppearance() (#26878) Co-authored-by: Milan Burda --- 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 b2509f0a3a753..7c2b80a320379 100644 --- a/lib/browser/api/system-preferences.ts +++ b/lib/browser/api/system-preferences.ts @@ -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) });