diff options
Diffstat (limited to 'recipes/slack')
-rw-r--r-- | recipes/slack/package.json | 2 | ||||
-rw-r--r-- | recipes/slack/webview.js | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/recipes/slack/package.json b/recipes/slack/package.json index 1c5de53..7c87e93 100644 --- a/recipes/slack/package.json +++ b/recipes/slack/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "slack", | 2 | "id": "slack", |
3 | "name": "Slack", | 3 | "name": "Slack", |
4 | "version": "1.2.0", | 4 | "version": "1.3.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://{teamId}.slack.com", | 7 | "serviceURL": "https://{teamId}.slack.com", |
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); |