aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/facebookpages/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/facebookpages/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/facebookpages/webview.js')
-rw-r--r--recipes/facebookpages/webview.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/recipes/facebookpages/webview.js b/recipes/facebookpages/webview.js
index 01ac1b6..0c646a9 100644
--- a/recipes/facebookpages/webview.js
+++ b/recipes/facebookpages/webview.js
@@ -7,10 +7,6 @@ module.exports = (Franz, options) => {
7 messages = parseInt(element.textContent, 10); 7 messages = parseInt(element.textContent, 10);
8 } 8 }
9 9
10 if (isNaN(messages)) {
11 messages = 0;
12 }
13
14 Franz.setBadge(messages); 10 Franz.setBadge(messages);
15 }; 11 };
16 12