asarfuckery/electronasar/canary/browser/api/system-preferences.js

11 lines
338 B
JavaScript
Raw Normal View History

2019-02-06 20:27:58 +00:00
'use strict'
const { EventEmitter } = require('events')
const { systemPreferences, SystemPreferences } = process.atomBinding('system_preferences')
// SystemPreferences is an EventEmitter.
Object.setPrototypeOf(SystemPreferences.prototype, EventEmitter.prototype)
EventEmitter.call(systemPreferences)
module.exports = systemPreferences