Ari*_*501 2 javascript google-chrome cross-browser electron microsoft-edge
我正在使用 Electron 尝试打开 URL。我知道我可以做类似的事情
const { shell } = require('electron')
shell.openExternal('https://github.com')
Run Code Online (Sandbox Code Playgroud)
在默认浏览器中打开 URL。
有没有办法在非默认浏览器中执行此操作?例如,如果我想打开指向 Edge Store 的链接,但我的默认浏览器是 Chrome,我可以执行以下操作吗
const { shell } = require('electron')
shell.openExternal('microsoft-edge:https://github.com')
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2119 次 |
| 最近记录: |