Previously, using the built-in open method would launch external links (https://) in an external browser.
However, starting from version 5.6β, the site is displayed in a built-in (or dedicated?) window.
Is this the expected behavior?
For plugins, I can handle this as follows:
import { shell } from "electron"
// 略
shell.openExternal(url)
I believe that the behavior of Electron’s shell.openExternal hasn’t changed in v5.6.0-beta.0.
I tried your code to reproduce it, but it opened the URL in Chrome as expected on macOS.
Thanks for the clarification! Got it. It looks like the event ‘new-window’ has been deprecated in the recent Electron.
I found there is a new way to handle opening new windows: