Sample project to reproduce this Electron issue: "openExternal url crash on macOS Sierra"
I've just edited electron/main.js file adding thoose lines
mainWindow.webContents.on('new-window', function(e, url) {
e.preventDefault();
electron.shell.openExternal(url);
});
Then in www/index.html
<h4>
This is a <a href="https://google.com" target="_blank">Link</a>
</h4>
When running in electron, clicking on "Link" will cause a crash of the app after a few seconds.
You can reproduce this issue building the app from sources or launching build/electron_app-darwin-x64/electron_app.app
`npm install` or `yarn`
This command will setup node_modules for running or testing application.
`npm start` or `yarn start`
Runs electron app
`npm build` or `yarn build`
Builds electron app