[doc]: fix when to use protocol module
authordeepak1556 <hop2deep@gmail.com>
Tue, 24 Mar 2015 11:56:12 +0000 (17:26 +0530)
committerdeepak1556 <hop2deep@gmail.com>
Wed, 25 Mar 2015 06:24:21 +0000 (11:54 +0530)
docs/api/protocol.md

index 0a80397..38a24d3 100644 (file)
@@ -10,7 +10,7 @@ An example of implementing a protocol that has the same effect with the
 var app = require('app'),
     path = require('path');
 
-app.on('will-finish-launching', function() {
+app.on('ready', function() {
     var protocol = require('protocol');
     protocol.registerProtocol('atom', function(request) {
       var url = request.url.substr(7)
@@ -19,7 +19,7 @@ app.on('will-finish-launching', function() {
 });
 ```
 
-**Note:** This module can only be used after the `will-finish-launching` event
+**Note:** This module can only be used after the `ready` event
 was emitted.
 
 ## protocol.registerProtocol(scheme, handler)