#Opening Windows in internet browser

7 messages · Page 1 of 1 (latest)

light silo
#

Is it possible to make it so when users click links in app it's opened in their internet browser? I have buttons in app to open new app windows but have no clue how I'd make like a tags be opened in their browser as opposed to a new app window.

#

Example:

const { shell } = require('electron')

shell.openExternal('https://github.com')
light silo
#

The issue is how would I do that based on when they click an a tag on the page?

#

Because I can't require electron in js files that are linked to the html file

ancient ginkgo
#

this will allow you to customize behaviour when opening links in a new window🙂