diff options
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 | ||