diff options
Diffstat (limited to 'recipes/slack/webview.js')
-rw-r--r-- | recipes/slack/webview.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/recipes/slack/webview.js b/recipes/slack/webview.js index b8e3817..1a12e80 100644 --- a/recipes/slack/webview.js +++ b/recipes/slack/webview.js | |||
@@ -1,5 +1,3 @@ | |||
1 | const _electron = require('electron'); | ||
2 | |||
3 | const _path = _interopRequireDefault(require('path')); | 1 | const _path = _interopRequireDefault(require('path')); |
4 | 2 | ||
5 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | 3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
@@ -27,7 +25,7 @@ const getTeamIcon = function getTeamIcon(count = 0) { | |||
27 | countTeamIconCheck += 1; | 25 | countTeamIconCheck += 1; |
28 | 26 | ||
29 | if (bgUrl) { | 27 | if (bgUrl) { |
30 | _electron.ipcRenderer.sendToHost('avatar', bgUrl); | 28 | Ferdi.ipcRenderer.sendToHost('avatar', bgUrl); |
31 | } else if (countTeamIconCheck <= 5) { | 29 | } else if (countTeamIconCheck <= 5) { |
32 | setTimeout(() => { | 30 | setTimeout(() => { |
33 | getTeamIcon(countTeamIconCheck + 1); | 31 | getTeamIcon(countTeamIconCheck + 1); |