mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Update as upstream
This commit is contained in:
@@ -13,6 +13,9 @@ app.on('ready', function() {
|
||||
protocol.registerProtocol('atom', function(request) {
|
||||
var url = request.url.substr(7)
|
||||
return new protocol.RequestFileJob(path.normalize(__dirname + '/' + url));
|
||||
}, function (error, scheme) {
|
||||
if (!error)
|
||||
console.log(scheme, ' registered successfully')
|
||||
});
|
||||
});
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user