electron/browser/api/lib/power-monitor.coffee
2013-08-03 16:03:56 +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