From dc0e9a9b45bc338d656b150dbd19349d72e3050e Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 5 Jan 2021 22:57:21 +0100 Subject: Update WhatsApp recipe to capture more unread message counters (#377) --- recipes/whatsapp/webview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'recipes/whatsapp/webview.js') diff --git a/recipes/whatsapp/webview.js b/recipes/whatsapp/webview.js index 263c543..26839d3 100644 --- a/recipes/whatsapp/webview.js +++ b/recipes/whatsapp/webview.js @@ -28,7 +28,7 @@ window.addEventListener('beforeunload', async () => { module.exports = Franz => { const getMessages = function getMessages() { - const elements = document.querySelectorAll("[class=_31gEB]"); + const elements = document.querySelectorAll('._31gEB, .CxUIE, .unread, ._0LqQ, .m61XR, .ZKn2B, .VOr2j'); var count = 0; var indirectCount = 0; -- cgit v1.2.3-70-g09d2