Add 'open-url' event for app API. Fixes #36.
This commit is contained in:
parent
ce569ebf78
commit
23dd5b4da8
7 changed files with 38 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
var app = require('app');
|
||||
var dialog = require('dialog');
|
||||
var delegate = require('atom-delegate');
|
||||
var ipc = require('ipc');
|
||||
var Menu = require('menu');
|
||||
|
@ -13,6 +14,10 @@ app.on('window-all-closed', function() {
|
|||
app.terminate();
|
||||
});
|
||||
|
||||
app.on('open-url', function(event, url) {
|
||||
dialog.showMessageBox({message: url, buttons: ['OK']});
|
||||
});
|
||||
|
||||
delegate.browserMainParts.preMainMessageLoopRun = function() {
|
||||
app.commandLine.appendSwitch('js-flags', '--harmony_collections');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue