aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/habitica
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/habitica
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/habitica')
-rwxr-xr-xrecipes/habitica/package.json2
-rwxr-xr-xrecipes/habitica/webview.js3
2 files changed, 1 insertions, 4 deletions
diff --git a/recipes/habitica/package.json b/recipes/habitica/package.json
index c9c593b..86539a4 100755
--- a/recipes/habitica/package.json
+++ b/recipes/habitica/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "habitica", 2 "id": "habitica",
3 "name": "Habitica", 3 "name": "Habitica",
4 "version": "1.0.3", 4 "version": "1.0.4",
5 "license": "MIT", 5 "license": "MIT",
6 "repository": "https://github.com/lmnet/franz-recipe-notion", 6 "repository": "https://github.com/lmnet/franz-recipe-notion",
7 "config": { 7 "config": {
diff --git a/recipes/habitica/webview.js b/recipes/habitica/webview.js
index 02b2e2d..5eb1c1c 100755
--- a/recipes/habitica/webview.js
+++ b/recipes/habitica/webview.js
@@ -4,9 +4,6 @@ module.exports = (Franz) => {
4 const element = document.querySelector('.message-count'); 4 const element = document.querySelector('.message-count');
5 if (element) { 5 if (element) {
6 count = Number(element.innerText); 6 count = Number(element.innerText);
7 if (Number.isNaN(count)) {
8 count = 0;
9 }
10 } 7 }
11 Franz.setBadge(count); 8 Franz.setBadge(count);
12 }; 9 };