diff options
Diffstat (limited to 'recipes/rocketchat/webview.js')
-rw-r--r-- | recipes/rocketchat/webview.js | 4 |
1 files changed, 1 insertions, 3 deletions
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 | ); |