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)
});
```
-**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)