diff options
-rw-r--r-- | all.json | 6 | ||||
-rw-r--r-- | recipes/pleroma/package.json | 2 | ||||
-rw-r--r-- | recipes/pleroma/webview.js | 2 | ||||
-rw-r--r-- | recipes/rocketchat/package.json | 2 | ||||
-rw-r--r-- | recipes/rocketchat/webview.js | 5 | ||||
-rw-r--r-- | recipes/slack/package.json | 2 | ||||
-rw-r--r-- | recipes/slack/webview.js | 2 |
7 files changed, 9 insertions, 12 deletions
@@ -1206,7 +1206,7 @@ | |||
1206 | "featured": false, | 1206 | "featured": false, |
1207 | "id": "pleroma", | 1207 | "id": "pleroma", |
1208 | "name": "Pleroma", | 1208 | "name": "Pleroma", |
1209 | "version": "1.2.0", | 1209 | "version": "1.2.1", |
1210 | "icons": { | 1210 | "icons": { |
1211 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/pleroma/icon.svg" | 1211 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/pleroma/icon.svg" |
1212 | } | 1212 | } |
@@ -1350,7 +1350,7 @@ | |||
1350 | "featured": false, | 1350 | "featured": false, |
1351 | "id": "rocketchat", | 1351 | "id": "rocketchat", |
1352 | "name": "Rocket.Chat", | 1352 | "name": "Rocket.Chat", |
1353 | "version": "1.2.2", | 1353 | "version": "1.2.3", |
1354 | "icons": { | 1354 | "icons": { |
1355 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/rocketchat/icon.svg" | 1355 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/rocketchat/icon.svg" |
1356 | } | 1356 | } |
@@ -1413,7 +1413,7 @@ | |||
1413 | "featured": true, | 1413 | "featured": true, |
1414 | "id": "slack", | 1414 | "id": "slack", |
1415 | "name": "Slack", | 1415 | "name": "Slack", |
1416 | "version": "1.3.1", | 1416 | "version": "1.3.2", |
1417 | "icons": { | 1417 | "icons": { |
1418 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/slack/icon.svg" | 1418 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/slack/icon.svg" |
1419 | } | 1419 | } |
diff --git a/recipes/pleroma/package.json b/recipes/pleroma/package.json index 1592d7b..766a63c 100644 --- a/recipes/pleroma/package.json +++ b/recipes/pleroma/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "pleroma", | 2 | "id": "pleroma", |
3 | "name": "Pleroma", | 3 | "name": "Pleroma", |
4 | "version": "1.2.0", | 4 | "version": "1.2.1", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "hasCustomUrl": true | 7 | "hasCustomUrl": true |
diff --git a/recipes/pleroma/webview.js b/recipes/pleroma/webview.js index 557f318..da76955 100644 --- a/recipes/pleroma/webview.js +++ b/recipes/pleroma/webview.js | |||
@@ -151,7 +151,7 @@ module.exports = Ferdi => { | |||
151 | Ferdi.loop(() => { | 151 | Ferdi.loop(() => { |
152 | getMessages(); | 152 | getMessages(); |
153 | if (updater.update()) { | 153 | if (updater.update()) { |
154 | Ferdi.ipcRenderer.sendToHost('avatar', updater.toDataURL()); | 154 | Ferdi.setAvatarImage(updater.toDataURL()); |
155 | } | 155 | } |
156 | }); | 156 | }); |
157 | }, (e) => { | 157 | }, (e) => { |
diff --git a/recipes/rocketchat/package.json b/recipes/rocketchat/package.json index 2bf5722..c44647a 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.2.2", | 4 | "version": "1.2.3", |
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 24d784a..5ed7866 100644 --- a/recipes/rocketchat/webview.js +++ b/recipes/rocketchat/webview.js | |||
@@ -41,10 +41,7 @@ module.exports = Ferdi => { | |||
41 | const response = JSON.parse(this.responseText); | 41 | const response = JSON.parse(this.responseText); |
42 | 42 | ||
43 | if (response.icons.length >= 1) { | 43 | if (response.icons.length >= 1) { |
44 | Ferdi.ipcRenderer.sendToHost( | 44 | Ferdi.setAvatarImage(`${window.location.protocol}//${window.location.host}${response.icons[0].src}`); |
45 | 'avatar', | ||
46 | `${window.location.protocol}//${window.location.host}${response.icons[0].src}`, | ||
47 | ); | ||
48 | } | 45 | } |
49 | }; | 46 | }; |
50 | 47 | ||
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); |