diff options
author | 2021-09-27 09:05:11 +0530 | |
---|---|---|
committer | 2021-09-27 09:05:11 +0530 | |
commit | aa5629fdf68984c86bbd0333c2cbf00904b482e1 (patch) | |
tree | ed8fe2c2b8c94ecbfbd3d4e78cfca9da2c279c23 /src/webview/lib/RecipeWebview.js | |
parent | 5.6.3-nightly.15 [skip ci] (diff) | |
download | ferdium-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/webview/lib/RecipeWebview.js')
-rw-r--r-- | src/webview/lib/RecipeWebview.js | 4 |
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 | ||
142 | export default RecipeWebview; | 146 | export default RecipeWebview; |