diff options
author | Vijay A <avijayr@protonmail.com> | 2021-09-27 05:25:50 +0530 |
---|---|---|
committer | Vijay A <avijayr@protonmail.com> | 2021-09-27 05:25:50 +0530 |
commit | a86245afc0c4aaca259d5c3f014794dbc4d913de (patch) | |
tree | 4b3fe945bafca56b5ea71975c75e2eb513575ac6 /recipes/rocketchat/webview.js | |
parent | refactor: add 'serviceId' when invoking 'clearStorageData' (#726) (diff) | |
download | ferdium-recipes-a86245afc0c4aaca259d5c3f014794dbc4d913de.tar.gz ferdium-recipes-a86245afc0c4aaca259d5c3f014794dbc4d913de.tar.zst ferdium-recipes-a86245afc0c4aaca259d5c3f014794dbc4d913de.zip |
refactor: remove references 'Ferdi.ipcRenderer' in recipes - create an abstraction layer instead for better maintainance
Diffstat (limited to 'recipes/rocketchat/webview.js')
-rw-r--r-- | recipes/rocketchat/webview.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/recipes/rocketchat/webview.js b/recipes/rocketchat/webview.js index 24d784a..5ed7866 100644 --- a/recipes/rocketchat/webview.js +++ b/recipes/rocketchat/webview.js | |||
@@ -41,10 +41,7 @@ module.exports = Ferdi => { | |||
41 | const response = JSON.parse(this.responseText); | 41 | const response = JSON.parse(this.responseText); |
42 | 42 | ||
43 | if (response.icons.length >= 1) { | 43 | if (response.icons.length >= 1) { |
44 | Ferdi.ipcRenderer.sendToHost( | 44 | Ferdi.setAvatarImage(`${window.location.protocol}//${window.location.host}${response.icons[0].src}`); |
45 | 'avatar', | ||
46 | `${window.location.protocol}//${window.location.host}${response.icons[0].src}`, | ||
47 | ); | ||
48 | } | 45 | } |
49 | }; | 46 | }; |
50 | 47 | ||