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/package.json | 2 +- recipes/rocketchat/webview.js | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'recipes/rocketchat') diff --git a/recipes/rocketchat/package.json b/recipes/rocketchat/package.json index 2bf5722..c44647a 100644 --- a/recipes/rocketchat/package.json +++ b/recipes/rocketchat/package.json @@ -1,7 +1,7 @@ { "id": "rocketchat", "name": "Rocket.Chat", - "version": "1.2.2", + "version": "1.2.3", "license": "MIT", "config": { "serviceURL": "https://{teamId}.rocket.chat", 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