aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-09-27 09:05:11 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-09-27 09:05:11 +0530
commitaa5629fdf68984c86bbd0333c2cbf00904b482e1 (patch)
treeed8fe2c2b8c94ecbfbd3d4e78cfca9da2c279c23 /src
parent5.6.3-nightly.15 [skip ci] (diff)
downloadferdium-app-aa5629fdf68984c86bbd0333c2cbf00904b482e1.tar.gz
ferdium-app-aa5629fdf68984c86bbd0333c2cbf00904b482e1.tar.zst
ferdium-app-aa5629fdf68984c86bbd0333c2cbf00904b482e1.zip
refactor: remove references 'Ferdi.ipcRenderer' in recipes - create an abstraction layer instead for better maintainance
Diffstat (limited to 'src')
-rw-r--r--src/webview/lib/RecipeWebview.js4
1 files changed, 4 insertions, 0 deletions
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 {
137 setAvatarImage(avatarUrl) { 137 setAvatarImage(avatarUrl) {
138 ipcRenderer.sendToHost('avatar', avatarUrl); 138 ipcRenderer.sendToHost('avatar', avatarUrl);
139 } 139 }
140
141 openNewWindow(url) {
142 ipcRenderer.sendToHost('new-window', url);
143 }
140} 144}
141 145
142export default RecipeWebview; 146export default RecipeWebview;