From 72511cc9d248de1d9cd5a43f2e9f90f1f4a01335 Mon Sep 17 00:00:00 2001 From: Milan Burda Date: Tue, 8 Dec 2020 17:21:42 +0100 Subject: [PATCH] fix: systemPreferences.effectiveAppearance returning systemPreferences.getAppLevelAppearance() (#26852) (#26881) --- 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) });