aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/rocketchat
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-09-27 05:25:50 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-09-27 05:25:50 +0530
commita86245afc0c4aaca259d5c3f014794dbc4d913de (patch)
tree4b3fe945bafca56b5ea71975c75e2eb513575ac6 /recipes/rocketchat
parentrefactor: add 'serviceId' when invoking 'clearStorageData' (#726) (diff)
downloadferdium-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')
-rw-r--r--recipes/rocketchat/package.json2
-rw-r--r--recipes/rocketchat/webview.js5
2 files changed, 2 insertions, 5 deletions
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 @@
1{ 1{
2 "id": "rocketchat", 2 "id": "rocketchat",
3 "name": "Rocket.Chat", 3 "name": "Rocket.Chat",
4 "version": "1.2.2", 4 "version": "1.2.3",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://{teamId}.rocket.chat", 7 "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 => {
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