X Tutup
Skip to content

Commit a360ef7

Browse files
committed
[doc]: fix when to use protocol module
1 parent 7006a14 commit a360ef7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api/protocol.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ An example of implementing a protocol that has the same effect with the
1010
var app = require('app'),
1111
path = require('path');
1212

13-
app.on('will-finish-launching', function() {
13+
app.on('ready', function() {
1414
var protocol = require('protocol');
1515
protocol.registerProtocol('atom', function(request) {
1616
var url = request.url.substr(7)
@@ -19,7 +19,7 @@ app.on('will-finish-launching', function() {
1919
});
2020
```
2121

22-
**Note:** This module can only be used after the `will-finish-launching` event
22+
**Note:** This module can only be used after the `ready` event
2323
was emitted.
2424

2525
## protocol.registerProtocol(scheme, handler)

0 commit comments

Comments
 (0)
X Tutup