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/inoreader/webview.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'recipes/inoreader/webview.js') diff --git a/recipes/inoreader/webview.js b/recipes/inoreader/webview.js index eaf9022..fddee5c 100644 --- a/recipes/inoreader/webview.js +++ b/recipes/inoreader/webview.js @@ -4,9 +4,7 @@ module.exports = (Franz) => { if (!all_articles) return; const unread_articles_cnt = Number(all_articles.textContent.split('+')[0]); - if (!Number.isNaN(unread_articles_cnt)) { - Franz.setBadge(unread_articles_cnt); - } + Franz.setBadge(unread_articles_cnt); }; Franz.loop(getMessages); -- cgit v1.2.3-70-g09d2