Skip to content

Commit

Permalink
fix(App): Fix opening links from some services
Browse files Browse the repository at this point in the history
  • Loading branch information
adlk committed Mar 31, 2022
1 parent 5b4152a commit 68226bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webview/recipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ window.open = (url, frameName, features) => {
originalWindowOpen(newWindow.location.href, frameName, features);
} else {
// Open the new URL
ipcRenderer.sendToHost('new-window', newWindow.location.href);
ipcRenderer.send('new-window', newWindow.location.href);
}
clearInterval(checkInterval);
}
Expand All @@ -167,7 +167,7 @@ window.open = (url, frameName, features) => {

// We need to differentiate if the link should be opened in a popup or in the systems default browser
if (!frameName && !features && typeof features !== 'string') {
return ipcRenderer.sendToHost('new-window', url);
return ipcRenderer.send('new-window', url);
}

if (url) {
Expand Down

0 comments on commit 68226bd

Please sign in to comment.