Browse Source

fix: systemPreferences.effectiveAppearance returning systemPreferences.getAppLevelAppearance() (#26879)

Co-authored-by: Milan Burda <[email protected]>
trop[bot] 4 years ago
parent
commit
e84539f2e0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/browser/api/system-preferences.ts

+ 1 - 1
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)
   });