From 4929cbff010712f109f5805027c140f434e77032 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Tue, 17 Aug 2021 13:50:28 +0530 Subject: fix: Fixes stack trace captured in https://github.com/getferdi/ferdi/issues/1745\#issuecomment-900088263 --- all.json | 2 +- recipes/whatsapp/package.json | 2 +- recipes/whatsapp/webview.js | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/all.json b/all.json index ceff6c5..1491e2a 100644 --- a/all.json +++ b/all.json @@ -1485,7 +1485,7 @@ "featured": true, "id": "whatsapp", "name": "WhatsApp", - "version": "3.1.1", + "version": "3.1.2", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/whatsapp/icon.svg" } diff --git a/recipes/whatsapp/package.json b/recipes/whatsapp/package.json index a2f0bce..58f440e 100644 --- a/recipes/whatsapp/package.json +++ b/recipes/whatsapp/package.json @@ -1,7 +1,7 @@ { "id": "whatsapp", "name": "WhatsApp", - "version": "3.1.1", + "version": "3.1.2", "license": "MIT", "config": { "serviceURL": "https://web.whatsapp.com", 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 => { let indirectCount = 0; const parentChatElem = document.querySelector('#pane-side').children[0].children[0].children[0]; + if (!parentChatElem) return; + const chatElems = parentChatElem.children; for (let i = 0; i < chatElems.length; i++) { const chatElem = chatElems[i]; -- cgit v1.2.3-70-g09d2