Skip to content

Commit 68226bd

Browse files
committed
fix(App): Fix opening links from some services
1 parent 5b4152a commit 68226bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/webview/recipe.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ window.open = (url, frameName, features) => {
151151
originalWindowOpen(newWindow.location.href, frameName, features);
152152
} else {
153153
// Open the new URL
154-
ipcRenderer.sendToHost('new-window', newWindow.location.href);
154+
ipcRenderer.send('new-window', newWindow.location.href);
155155
}
156156
clearInterval(checkInterval);
157157
}
@@ -167,7 +167,7 @@ window.open = (url, frameName, features) => {
167167

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

173173
if (url) {

0 commit comments

Comments
 (0)