diff options
Diffstat (limited to 'recipes/rocketchat')
-rw-r--r-- | recipes/rocketchat/package.json | 2 | ||||
-rw-r--r-- | recipes/rocketchat/webview.js | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/recipes/rocketchat/package.json b/recipes/rocketchat/package.json index 111efbd..3b807bf 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.1.1", | 4 | "version": "1.2.0", |
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 d3d0a27..4240935 100644 --- a/recipes/rocketchat/webview.js +++ b/recipes/rocketchat/webview.js | |||
@@ -1,5 +1,3 @@ | |||
1 | const { ipcRenderer } = require('electron'); | ||
2 | |||
3 | const getTeamIcon = function getTeamIcon() { | 1 | const getTeamIcon = function getTeamIcon() { |
4 | const manifestElement = document.querySelector('link[rel="manifest"]'); | 2 | const manifestElement = document.querySelector('link[rel="manifest"]'); |
5 | 3 | ||
@@ -23,7 +21,7 @@ const getTeamIcon = function getTeamIcon() { | |||
23 | const response = JSON.parse(this.responseText); | 21 | const response = JSON.parse(this.responseText); |
24 | 22 | ||
25 | if (response.icons.length >= 1) { | 23 | if (response.icons.length >= 1) { |
26 | ipcRenderer.sendToHost( | 24 | Ferdi.ipcRenderer.sendToHost( |
27 | 'avatar', | 25 | 'avatar', |
28 | `${window.location.protocol}//${window.location.host}${response.icons[0].src}`, | 26 | `${window.location.protocol}//${window.location.host}${response.icons[0].src}`, |
29 | ); | 27 | ); |