mirror of
https://github.com/HackPlan/atom-shell.git
synced 2026-04-29 20:26:03 +08:00
8 lines
215 B
CoffeeScript
8 lines
215 B
CoffeeScript
bindings = process.atomBinding 'power_monitor'
|
|
EventEmitter = require('events').EventEmitter
|
|
|
|
PowerMonitor = bindings.PowerMonitor
|
|
PowerMonitor::__proto__ = EventEmitter.prototype
|
|
|
|
module.exports = new PowerMonitor
|