From aa5629fdf68984c86bbd0333c2cbf00904b482e1 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Mon, 27 Sep 2021 09:05:11 +0530 Subject: refactor: remove references 'Ferdi.ipcRenderer' in recipes - create an abstraction layer instead for better maintainance --- src/webview/lib/RecipeWebview.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/webview/lib/RecipeWebview.js b/src/webview/lib/RecipeWebview.js index fa2dc5654..f1d493e7c 100644 --- a/src/webview/lib/RecipeWebview.js +++ b/src/webview/lib/RecipeWebview.js @@ -137,6 +137,10 @@ class RecipeWebview { setAvatarImage(avatarUrl) { ipcRenderer.sendToHost('avatar', avatarUrl); } + + openNewWindow(url) { + ipcRenderer.sendToHost('new-window', url); + } } export default RecipeWebview; -- cgit v1.2.3-54-g00ecf