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/gmail/webview.js | 6 ------ 1 file changed, 6 deletions(-) (limited to 'recipes/gmail/webview.js') diff --git a/recipes/gmail/webview.js b/recipes/gmail/webview.js index 681b36e..a26c7cb 100644 --- a/recipes/gmail/webview.js +++ b/recipes/gmail/webview.js @@ -18,12 +18,6 @@ module.exports = (Franz) => { } } - // Just incase we don't end up with a number, set it back to zero (parseInt can return NaN) - count = parseInt(count, 10); - if (isNaN(count)) { - count = 0; - } - // set Franz badge Franz.setBadge(count); }; -- cgit v1.2.3-70-g09d2