mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-27 01:11:13 -06:00
Merge pull request #3 from lneir/open-external-url
open url in default browser
This commit is contained in:
commit
e694837b24
6
main.js
6
main.js
@ -59,6 +59,12 @@ function createWindow () {
|
||||
// when you should delete the corresponding element.
|
||||
mainWindow = null;
|
||||
});
|
||||
|
||||
// open external links in default browser
|
||||
mainWindow.webContents.on('new-window', function(event, url) {
|
||||
event.preventDefault();
|
||||
electron.shell.openExternal(url);
|
||||
});
|
||||
}
|
||||
|
||||
// This method will be called when Electron has finished
|
||||
|
Loading…
Reference in New Issue
Block a user