electron/lib/browser/api/power-monitor.js
2016-03-08 11:14:21 -08:00

6 lines
207 B
JavaScript

const EventEmitter = require('events').EventEmitter;
const powerMonitor = process.atomBinding('power_monitor').powerMonitor;
powerMonitor.__proto__ = EventEmitter.prototype;
module.exports = powerMonitor;