We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3f3881 commit c8d37cdCopy full SHA for c8d37cd
src/main/index.js
@@ -31,7 +31,8 @@ function runApp() {
31
},
32
{
33
label: 'Open in a New Window',
34
- visible: parameters.linkURL.includes((new URL(browserWindow.webContents.getURL())).origin),
+ // Only show the option for in-app URLs and not external ones
35
+ visible: parameters.linkURL.split('#')[0] === browserWindow.webContents.getURL().split('#')[0],
36
click: () => {
37
createWindow({ replaceMainWindow: false, windowStartupUrl: parameters.linkURL, showWindowNow: true })
38
}
0 commit comments