diff options
-rw-r--r-- | all.json | 2 | ||||
-rw-r--r-- | recipes/nextcloud-talk/package.json | 2 | ||||
-rw-r--r-- | recipes/nextcloud-talk/webview.js | 4 |
3 files changed, 6 insertions, 2 deletions
@@ -1140,7 +1140,7 @@ | |||
1140 | "featured": false, | 1140 | "featured": false, |
1141 | "id": "nextcloud-talk", | 1141 | "id": "nextcloud-talk", |
1142 | "name": "Nextcloud Talk", | 1142 | "name": "Nextcloud Talk", |
1143 | "version": "1.1.1", | 1143 | "version": "1.2.0", |
1144 | "icons": { | 1144 | "icons": { |
1145 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/nextcloud-talk/icon.svg" | 1145 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/nextcloud-talk/icon.svg" |
1146 | } | 1146 | } |
diff --git a/recipes/nextcloud-talk/package.json b/recipes/nextcloud-talk/package.json index 445780d..7120673 100644 --- a/recipes/nextcloud-talk/package.json +++ b/recipes/nextcloud-talk/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "nextcloud-talk", | 2 | "id": "nextcloud-talk", |
3 | "name": "Nextcloud Talk", | 3 | "name": "Nextcloud Talk", |
4 | "version": "1.1.1", | 4 | "version": "1.2.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "hasNotificationSound": true, | 7 | "hasNotificationSound": true, |
diff --git a/recipes/nextcloud-talk/webview.js b/recipes/nextcloud-talk/webview.js index 49a3e29..5e28853 100644 --- a/recipes/nextcloud-talk/webview.js +++ b/recipes/nextcloud-talk/webview.js | |||
@@ -21,6 +21,10 @@ module.exports = Ferdi => { | |||
21 | indirect += Number(counter.textContent); | 21 | indirect += Number(counter.textContent); |
22 | } | 22 | } |
23 | 23 | ||
24 | if (document.title.startsWith("*")) { | ||
25 | indirect++; | ||
26 | } | ||
27 | |||
24 | Ferdi.setBadge(direct, indirect); | 28 | Ferdi.setBadge(direct, indirect); |
25 | }; | 29 | }; |
26 | 30 | ||