【发布时间】:2020-11-27 06:04:36
【问题描述】:
我正在使用 Electron 尝试打开一个 URL。我知道我可以做类似的事情
const { shell } = require('electron')
shell.openExternal('https://github.com')
在默认浏览器中打开 URL。
有没有办法在非默认浏览器中做到这一点?例如,如果我想打开一个指向 Edge Store 的链接,但我的默认浏览器是 Chrome,我可以这样做
const { shell } = require('electron')
shell.openExternal('microsoft-edge:https://github.com')
【问题讨论】:
标签: javascript google-chrome electron cross-browser microsoft-edge