I put a webapp into ElectronJS framework. In the webapp (actually webpage) there are some links target=_blank
. However when I click the link, it will open another Electron browser window. Expectedly I want the link to be shown in default web browser.
What I can think about is to trap such navigation event and then send a message to the main browser window and let it spawn a default browser instance to show the link.
I think this is a bit complicated. I'm seeking an easier way to do this.