aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/teamwork-projects
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-08-31 16:25:57 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-08-31 16:25:57 +0530
commitdfae2d231e39c81827d08fd8834d736c5b3005b1 (patch)
tree5037b401e7de837fdd6046a3c61ac76aed240e6e /recipes/teamwork-projects
parentNew recipe: odoo (diff)
downloadferdium-recipes-dfae2d231e39c81827d08fd8834d736c5b3005b1.tar.gz
ferdium-recipes-dfae2d231e39c81827d08fd8834d736c5b3005b1.tar.zst
ferdium-recipes-dfae2d231e39c81827d08fd8834d736c5b3005b1.zip
refactor: Use Ferdi.safeParseInt to ensure that parsing is done consistently in all recipes.
Diffstat (limited to 'recipes/teamwork-projects')
-rw-r--r--recipes/teamwork-projects/package.json2
-rw-r--r--recipes/teamwork-projects/webview.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/recipes/teamwork-projects/package.json b/recipes/teamwork-projects/package.json
index 573de82..50810b0 100644
--- a/recipes/teamwork-projects/package.json
+++ b/recipes/teamwork-projects/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "teamwork-projects", 2 "id": "teamwork-projects",
3 "name": "Teamwork Projects", 3 "name": "Teamwork Projects",
4 "version": "0.2.0", 4 "version": "0.2.1",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://{teamId}.teamwork.com/", 7 "serviceURL": "https://{teamId}.teamwork.com/",
diff --git a/recipes/teamwork-projects/webview.js b/recipes/teamwork-projects/webview.js
index 94e8dd0..734eb4f 100644
--- a/recipes/teamwork-projects/webview.js
+++ b/recipes/teamwork-projects/webview.js
@@ -4,7 +4,7 @@ module.exports = (Ferdi) => {
4 const badge = document.getElementById('numNotifs2'); 4 const badge = document.getElementById('numNotifs2');
5 5
6 if (badge && badge.innerText) { 6 if (badge && badge.innerText) {
7 indirectCount = parseInt(badge.innerText); 7 indirectCount = Ferdi.safeParseInt(badge.innerText);
8 } 8 }
9 9
10 Ferdi.setBadge(0, indirectCount); 10 Ferdi.setBadge(0, indirectCount);