From 212d5846427ceeacfadf5aac3f381b532f4664a1 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Tue, 17 Aug 2021 10:47:32 +0530 Subject: Cleanup of recipes to remove 'NaN' of badge variables since this is handled in the main program. --- recipes/whatsapp/webview.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'recipes/whatsapp/webview.js') diff --git a/recipes/whatsapp/webview.js b/recipes/whatsapp/webview.js index c01b7d1..9050832 100644 --- a/recipes/whatsapp/webview.js +++ b/recipes/whatsapp/webview.js @@ -27,7 +27,7 @@ window.addEventListener('beforeunload', async () => { module.exports = Franz => { const getMessages = function getMessages() { let count = 0; - let indirectCount = 0; + let indirectCount = 0; const parentChatElem = document.querySelector('#pane-side').children[0].children[0].children[0]; const chatElems = parentChatElem.children; @@ -41,7 +41,7 @@ module.exports = Franz => { count += countValue; } else { indirectCount += countValue; - } + } } Franz.setBadge(count, indirectCount); -- cgit v1.2.3-70-g09d2