diff options
author | 2021-09-27 05:25:50 +0530 | |
---|---|---|
committer | 2021-09-27 05:25:50 +0530 | |
commit | a86245afc0c4aaca259d5c3f014794dbc4d913de (patch) | |
tree | 4b3fe945bafca56b5ea71975c75e2eb513575ac6 /recipes/slack | |
parent | refactor: add 'serviceId' when invoking 'clearStorageData' (#726) (diff) | |
download | ferdium-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/slack')
-rw-r--r-- | recipes/slack/package.json | 2 | ||||
-rw-r--r-- | recipes/slack/webview.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/recipes/slack/package.json b/recipes/slack/package.json index 877bd8e..db05b26 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.3.1", | 4 | "version": "1.3.2", |
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 3064e79..23cede8 100644 --- a/recipes/slack/webview.js +++ b/recipes/slack/webview.js | |||
@@ -36,7 +36,7 @@ module.exports = Ferdi => { | |||
36 | countTeamIconCheck += 1; | 36 | countTeamIconCheck += 1; |
37 | 37 | ||
38 | if (bgUrl) { | 38 | if (bgUrl) { |
39 | Ferdi.ipcRenderer.sendToHost('avatar', bgUrl); | 39 | Ferdi.setAvatarImage(bgUrl); |
40 | } else if (countTeamIconCheck <= 5) { | 40 | } else if (countTeamIconCheck <= 5) { |
41 | setTimeout(() => { | 41 | setTimeout(() => { |
42 | getTeamIcon(countTeamIconCheck + 1); | 42 | getTeamIcon(countTeamIconCheck + 1); |