From dec43d3165974e5190fb3bf7bccd031dea2783a7 Mon Sep 17 00:00:00 2001 From: Milan Burda Date: Mon, 7 Dec 2020 05:21:24 +0100 Subject: [PATCH] fix: systemPreferences.effectiveAppearance returning systemPreferences.getAppLevelAppearance() --- 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) });