Make a link from Electron open in browser

saadel picture saadel · Jul 31, 2015 · Viewed 31.6k times · Source

Is there any (simple/built-in way) to open a new browser (I mean default OS browser) window for a link from Electron instead of visiting that link inside your Electron app ?

Answer

zianwar picture zianwar · Jul 31, 2015

You can simply use :

require("shell").openExternal("http://www.google.com")