2020-07-28 12:03:30 -06:00
|
|
|
const { systemPreferences } = process._linkedBinding('electron_browser_system_preferences');
|
2019-08-14 14:42:55 -06:00
|
|
|
|
2020-03-17 19:06:52 -06:00
|
|
|
if ('getEffectiveAppearance' in systemPreferences) {
|
2020-12-08 00:07:04 -07:00
|
|
|
const nativeEAGetter = systemPreferences.getEffectiveAppearance;
|
2020-07-28 12:03:30 -06:00
|
|
|
Object.defineProperty(systemPreferences, 'effectiveAppearance', {
|
2020-03-17 19:06:52 -06:00
|
|
|
get: () => nativeEAGetter.call(systemPreferences)
|
2020-03-20 14:28:31 -06:00
|
|
|
});
|
2019-08-14 14:42:55 -06:00
|
|
|
}
|
|
|
|
|
2020-07-28 12:03:30 -06:00
|
|
|
export default systemPreferences;
|