electron/lib/browser/api/power-monitor.js

7 lines
203 B
JavaScript
Raw Normal View History

const EventEmitter = require('events').EventEmitter
const powerMonitor = process.atomBinding('power_monitor').powerMonitor
2016-01-12 02:40:23 +00:00
powerMonitor.__proto__ = EventEmitter.prototype
2016-01-12 02:40:23 +00:00
module.exports = powerMonitor