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/habitica/webview.js | 3 --- 1 file changed, 3 deletions(-) (limited to 'recipes/habitica/webview.js') diff --git a/recipes/habitica/webview.js b/recipes/habitica/webview.js index 02b2e2d..5eb1c1c 100755 --- a/recipes/habitica/webview.js +++ b/recipes/habitica/webview.js @@ -4,9 +4,6 @@ module.exports = (Franz) => { const element = document.querySelector('.message-count'); if (element) { count = Number(element.innerText); - if (Number.isNaN(count)) { - count = 0; - } } Franz.setBadge(count); }; -- cgit v1.2.3-70-g09d2