aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/proton-mail/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/proton-mail/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/proton-mail/webview.js')
-rw-r--r--recipes/proton-mail/webview.js3
1 files changed, 0 insertions, 3 deletions
diff --git a/recipes/proton-mail/webview.js b/recipes/proton-mail/webview.js
index fd1a865..2417309 100644
--- a/recipes/proton-mail/webview.js
+++ b/recipes/proton-mail/webview.js
@@ -6,9 +6,6 @@ module.exports = Franz => {
6 } 6 }
7 const text = element.innerText; 7 const text = element.innerText;
8 const count = Number(text.substring(1, text.length - 1)); 8 const count = Number(text.substring(1, text.length - 1));
9 if (Number.isNaN(count)) {
10 return;
11 }
12 Franz.setBadge(count); 9 Franz.setBadge(count);
13 } 10 }
14 11