electron/atom/browser/api/lib/power-monitor.coffee

7 lines
191 B
CoffeeScript
Raw Normal View History

2014-04-17 09:13:17 +00:00
powerMonitor = process.atomBinding('power_monitor').powerMonitor
2013-08-03 07:58:59 +00:00
EventEmitter = require('events').EventEmitter
2014-04-17 09:13:17 +00:00
powerMonitor.__proto__ = EventEmitter.prototype
2013-08-03 07:58:59 +00:00
2014-04-17 09:13:17 +00:00
module.exports = powerMonitor