Update power-monitor.md
This commit is contained in:
parent
378e56e254
commit
2de9123cfd
1 changed files with 1 additions and 2 deletions
|
@ -8,10 +8,9 @@ An example is:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
var app = require('app');
|
var app = require('app');
|
||||||
var powerMonitor = require('power-monitor');
|
|
||||||
|
|
||||||
app.on('ready', function() {
|
app.on('ready', function() {
|
||||||
powerMonitor.on('suspend', function() {
|
require('power-monitor').on('suspend', function() {
|
||||||
console.log('The system is going to sleep');
|
console.log('The system is going to sleep');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue