electron/lib/browser/api/power-monitor.js
2016-03-30 17:00:33 -07:00

6 lines
215 B
JavaScript

const EventEmitter = require('events').EventEmitter
const powerMonitor = process.atomBinding('power_monitor').powerMonitor
Object.setPrototypeOf(powerMonitor, EventEmitter.prototype)
module.exports = powerMonitor