diff options
author | 2020-07-22 19:37:41 +0200 | |
---|---|---|
committer | 2020-07-22 19:37:41 +0200 | |
commit | 9d3cbc0a0998ab90d8a22746a7213151709a7a38 (patch) | |
tree | 5c06cea0fb54a934a22d94953be9707e9cfc226c | |
parent | Merge pull request #217 from yann-soubeyrand/patch-1 (diff) | |
parent | Add support for empty unread badges (diff) | |
download | ferdium-recipes-9d3cbc0a0998ab90d8a22746a7213151709a7a38.tar.gz ferdium-recipes-9d3cbc0a0998ab90d8a22746a7213151709a7a38.tar.zst ferdium-recipes-9d3cbc0a0998ab90d8a22746a7213151709a7a38.zip |
Merge pull request #236 from ruippeixotog/patch-1
Add support for empty unread badges in WhatsApp
-rw-r--r-- | all.json | 2 | ||||
-rw-r--r-- | archives/whatsapp.tar.gz | bin | 183549 -> 183548 bytes | |||
-rw-r--r-- | uncompressed/whatsapp/package.json | 2 | ||||
-rw-r--r-- | uncompressed/whatsapp/webview.js | 4 |
4 files changed, 4 insertions, 4 deletions
@@ -1126,7 +1126,7 @@ | |||
1126 | "featured": true, | 1126 | "featured": true, |
1127 | "id": "whatsapp", | 1127 | "id": "whatsapp", |
1128 | "name": "WhatsApp", | 1128 | "name": "WhatsApp", |
1129 | "version": "2.0.6", | 1129 | "version": "2.0.7", |
1130 | "icons": { | 1130 | "icons": { |
1131 | "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/whatsapp/icon.png", | 1131 | "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/whatsapp/icon.png", |
1132 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/whatsapp/icon.svg" | 1132 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/whatsapp/icon.svg" |
diff --git a/archives/whatsapp.tar.gz b/archives/whatsapp.tar.gz index dd48a42..4bb91a0 100644 --- a/archives/whatsapp.tar.gz +++ b/archives/whatsapp.tar.gz | |||
Binary files differ | |||
diff --git a/uncompressed/whatsapp/package.json b/uncompressed/whatsapp/package.json index 4dc3f3b..c4c60ce 100644 --- a/uncompressed/whatsapp/package.json +++ b/uncompressed/whatsapp/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "whatsapp", | 2 | "id": "whatsapp", |
3 | "name": "WhatsApp", | 3 | "name": "WhatsApp", |
4 | "version": "2.0.6", | 4 | "version": "2.0.7", |
5 | "description": "WhatsApp", | 5 | "description": "WhatsApp", |
6 | "main": "index.js", | 6 | "main": "index.js", |
7 | "author": "Stefan Malzner <stefan@adlk.io>", | 7 | "author": "Stefan Malzner <stefan@adlk.io>", |
diff --git a/uncompressed/whatsapp/webview.js b/uncompressed/whatsapp/webview.js index 23838ac..263c543 100644 --- a/uncompressed/whatsapp/webview.js +++ b/uncompressed/whatsapp/webview.js | |||
@@ -33,7 +33,7 @@ module.exports = Franz => { | |||
33 | var indirectCount = 0; | 33 | var indirectCount = 0; |
34 | 34 | ||
35 | for (var i = 0; i < elements.length; i += 1) { | 35 | for (var i = 0; i < elements.length; i += 1) { |
36 | var countValue = parseInt(elements[i].textContent, 10); | 36 | var countValue = parseInt(elements[i].textContent || '0', 10); |
37 | 37 | ||
38 | if (elements[i].parentNode.previousElementSibling === null || elements[i].parentNode.previousElementSibling.querySelectorAll("[data-icon=muted]").length === 0) { | 38 | if (elements[i].parentNode.previousElementSibling === null || elements[i].parentNode.previousElementSibling.querySelectorAll("[data-icon=muted]").length === 0) { |
39 | count += countValue; | 39 | count += countValue; |
@@ -48,4 +48,4 @@ module.exports = Franz => { | |||
48 | 48 | ||
49 | Franz.injectCSS(path.join(__dirname, 'service.css')); | 49 | Franz.injectCSS(path.join(__dirname, 'service.css')); |
50 | Franz.loop(getMessages); | 50 | Franz.loop(getMessages); |
51 | }; \ No newline at end of file | 51 | }; |