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

8 lines
215 B
CoffeeScript
Raw Normal View History

2013-08-03 07:58:59 +00:00
bindings = process.atomBinding 'power_monitor'
EventEmitter = require('events').EventEmitter
PowerMonitor = bindings.PowerMonitor
PowerMonitor::__proto__ = EventEmitter.prototype
module.exports = new PowerMonitor