diff options
author | 2021-08-17 13:50:28 +0530 | |
---|---|---|
committer | 2021-08-17 13:50:28 +0530 | |
commit | 4929cbff010712f109f5805027c140f434e77032 (patch) | |
tree | 844c8f083d0076c2bce9f955799eb88d24201e58 /recipes/whatsapp/webview.js | |
parent | Cleanup of recipes to remove 'NaN' of badge variables since this is handled i... (diff) | |
download | ferdium-recipes-4929cbff010712f109f5805027c140f434e77032.tar.gz ferdium-recipes-4929cbff010712f109f5805027c140f434e77032.tar.zst ferdium-recipes-4929cbff010712f109f5805027c140f434e77032.zip |
fix: Fixes stack trace captured in https://github.com/getferdi/ferdi/issues/1745\#issuecomment-900088263
Diffstat (limited to 'recipes/whatsapp/webview.js')
-rw-r--r-- | recipes/whatsapp/webview.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/recipes/whatsapp/webview.js b/recipes/whatsapp/webview.js index 9050832..143c066 100644 --- a/recipes/whatsapp/webview.js +++ b/recipes/whatsapp/webview.js | |||
@@ -30,6 +30,8 @@ module.exports = Franz => { | |||
30 | let indirectCount = 0; | 30 | let indirectCount = 0; |
31 | 31 | ||
32 | const parentChatElem = document.querySelector('#pane-side').children[0].children[0].children[0]; | 32 | const parentChatElem = document.querySelector('#pane-side').children[0].children[0].children[0]; |
33 | if (!parentChatElem) return; | ||
34 | |||
33 | const chatElems = parentChatElem.children; | 35 | const chatElems = parentChatElem.children; |
34 | for (let i = 0; i < chatElems.length; i++) { | 36 | for (let i = 0; i < chatElems.length; i++) { |
35 | const chatElem = chatElems[i]; | 37 | const chatElem = chatElems[i]; |