electron/atom/browser/api/lib/power-monitor.coffee
2014-03-16 08:30:26 +08:00

7 lines
215 B
CoffeeScript

bindings = process.atomBinding 'power_monitor'
EventEmitter = require('events').EventEmitter
PowerMonitor = bindings.PowerMonitor
PowerMonitor::__proto__ = EventEmitter.prototype
module.exports = new PowerMonitor