diff options
author | Vijay A <avijayr@protonmail.com> | 2021-09-27 05:27:31 +0530 |
---|---|---|
committer | Vijay A <avijayr@protonmail.com> | 2021-09-27 05:27:38 +0530 |
commit | c28cb0e4594d826b0764166241d6f78be757d237 (patch) | |
tree | 241c6f5ce8b7a658c927a0be81b2a849e426ed21 /src/webview | |
parent | Fix Slack connection with Google SSO (#1991) (diff) | |
download | ferdium-app-c28cb0e4594d826b0764166241d6f78be757d237.tar.gz ferdium-app-c28cb0e4594d826b0764166241d6f78be757d237.tar.zst ferdium-app-c28cb0e4594d826b0764166241d6f78be757d237.zip |
refactor: remove references 'Ferdi.ipcRenderer' in recipes - create an abstraction layer instead for better maintainance
Diffstat (limited to 'src/webview')
-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 b2a9f3ee8..fa2dc5654 100644 --- a/src/webview/lib/RecipeWebview.js +++ b/src/webview/lib/RecipeWebview.js | |||
@@ -133,6 +133,10 @@ class RecipeWebview { | |||
133 | releaseServiceWorkers() { | 133 | releaseServiceWorkers() { |
134 | this.sessionHandler.releaseServiceWorkers(); | 134 | this.sessionHandler.releaseServiceWorkers(); |
135 | } | 135 | } |
136 | |||
137 | setAvatarImage(avatarUrl) { | ||
138 | ipcRenderer.sendToHost('avatar', avatarUrl); | ||
139 | } | ||
136 | } | 140 | } |
137 | 141 | ||
138 | export default RecipeWebview; | 142 | export default RecipeWebview; |