From a86245afc0c4aaca259d5c3f014794dbc4d913de Mon Sep 17 00:00:00 2001 From: Vijay A Date: Mon, 27 Sep 2021 05:25:50 +0530 Subject: refactor: remove references 'Ferdi.ipcRenderer' in recipes - create an abstraction layer instead for better maintainance --- recipes/rocketchat/webview.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'recipes/rocketchat/webview.js') 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 => { const response = JSON.parse(this.responseText); if (response.icons.length >= 1) { - Ferdi.ipcRenderer.sendToHost( - 'avatar', - `${window.location.protocol}//${window.location.host}${response.icons[0].src}`, - ); + Ferdi.setAvatarImage(`${window.location.protocol}//${window.location.host}${response.icons[0].src}`); } }; -- cgit v1.2.3-70-g09d2