electron/atom/browser/api/lib/power-monitor.js
2016-01-12 16:24:06 -08:00

9 lines
229 B
JavaScript

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