aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/gmail/webview.js
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-08-17 10:47:32 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-08-17 10:47:32 +0530
commit212d5846427ceeacfadf5aac3f381b532f4664a1 (patch)
tree7badcbb01930e77a2b2745e189e89323111ef470 /recipes/gmail/webview.js
parentMoved all npm packages to the 'devDependencies' since there is no node-runtim... (diff)
downloadferdium-recipes-212d5846427ceeacfadf5aac3f381b532f4664a1.tar.gz
ferdium-recipes-212d5846427ceeacfadf5aac3f381b532f4664a1.tar.zst
ferdium-recipes-212d5846427ceeacfadf5aac3f381b532f4664a1.zip
Cleanup of recipes to remove 'NaN' of badge variables since this is handled in the main program.
Diffstat (limited to 'recipes/gmail/webview.js')
-rw-r--r--recipes/gmail/webview.js6
1 files changed, 0 insertions, 6 deletions
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) => {
18 } 18 }
19 } 19 }
20 20
21 // Just incase we don't end up with a number, set it back to zero (parseInt can return NaN)
22 count = parseInt(count, 10);
23 if (isNaN(count)) {
24 count = 0;
25 }
26
27 // set Franz badge 21 // set Franz badge
28 Franz.setBadge(count); 22 Franz.setBadge(count);
29 }; 23 };