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/package.json | 2 +- recipes/gmail/webview.js | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) (limited to 'recipes/gmail') diff --git a/recipes/gmail/package.json b/recipes/gmail/package.json index 27009af..502faff 100644 --- a/recipes/gmail/package.json +++ b/recipes/gmail/package.json @@ -1,7 +1,7 @@ { "id": "gmail", "name": "Gmail", - "version": "1.3.10", + "version": "1.3.11", "license": "MIT", "config": { "serviceURL": "https://mail.google.com" 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