Skip to content

dennybiasiolli/electron_test_issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Electron App

Sample project to reproduce this Electron issue: "openExternal url crash on macOS Sierra"

Steps

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

Installation

`npm install` or `yarn`

This command will setup node_modules for running or testing application.

Usage

`npm start` or `yarn start`

Runs electron app

`npm build` or `yarn build`

Builds electron app