diff options
Diffstat (limited to 'recipes/whatsapp')
-rw-r--r-- | recipes/whatsapp/package.json | 2 | ||||
-rw-r--r-- | recipes/whatsapp/webview.js | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/recipes/whatsapp/package.json b/recipes/whatsapp/package.json index c33b115..4e59177 100644 --- a/recipes/whatsapp/package.json +++ b/recipes/whatsapp/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "whatsapp", | 2 | "id": "whatsapp", |
3 | "name": "WhatsApp", | 3 | "name": "WhatsApp", |
4 | "version": "3.3.1", | 4 | "version": "3.3.2", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://web.whatsapp.com", | 7 | "serviceURL": "https://web.whatsapp.com", |
diff --git a/recipes/whatsapp/webview.js b/recipes/whatsapp/webview.js index eaaf2c2..3df34e3 100644 --- a/recipes/whatsapp/webview.js +++ b/recipes/whatsapp/webview.js | |||
@@ -12,7 +12,8 @@ module.exports = Ferdi => { | |||
12 | let count = 0; | 12 | let count = 0; |
13 | let indirectCount = 0; | 13 | let indirectCount = 0; |
14 | 14 | ||
15 | const parentChatElem = document.querySelector('[aria-label="Chat list"]'); | 15 | const parentChatElem = Array.from(document.querySelectorAll('div[aria-label]')) |
16 | .sort((a, b) => (a.offsetHeight < b.offsetHeight) ? 1 : -1)[0]; | ||
16 | if (!parentChatElem) { | 17 | if (!parentChatElem) { |
17 | return; | 18 | return; |
18 | } | 19 | } |