diff --git a/docs/api/power-monitor.md b/docs/api/power-monitor.md index 9273e13d9a5..4643110f35b 100644 --- a/docs/api/power-monitor.md +++ b/docs/api/power-monitor.md @@ -8,10 +8,9 @@ An example is: ```javascript var app = require('app'); -var powerMonitor = require('power-monitor'); app.on('ready', function() { - powerMonitor.on('suspend', function() { + require('power-monitor').on('suspend', function() { console.log('The system is going to sleep'); }); });