diff options
author | 2021-09-27 09:05:11 +0530 | |
---|---|---|
committer | 2021-09-27 09:05:11 +0530 | |
commit | aa5629fdf68984c86bbd0333c2cbf00904b482e1 (patch) | |
tree | ed8fe2c2b8c94ecbfbd3d4e78cfca9da2c279c23 | |
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
m--------- | recipes | 0 | ||||
-rw-r--r-- | src/webview/lib/RecipeWebview.js | 4 |
2 files changed, 4 insertions, 0 deletions
diff --git a/recipes b/recipes | |||
Subproject a86245afc0c4aaca259d5c3f014794dbc4d913d | Subproject eb893bfca211204303fc4c0dc115bad249c6145 | ||
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; |