aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/teamleader
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/teamleader
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/teamleader')
-rw-r--r--recipes/teamleader/package.json2
-rw-r--r--recipes/teamleader/webview.js3
2 files changed, 2 insertions, 3 deletions
diff --git a/recipes/teamleader/package.json b/recipes/teamleader/package.json
index 332f28f..83a8521 100644
--- a/recipes/teamleader/package.json
+++ b/recipes/teamleader/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "teamleader", 2 "id": "teamleader",
3 "name": "teamleader", 3 "name": "teamleader",
4 "version": "1.1.0", 4 "version": "1.1.1",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://app.teamleader.eu/?gotologin", 7 "serviceURL": "https://app.teamleader.eu/?gotologin",
diff --git a/recipes/teamleader/webview.js b/recipes/teamleader/webview.js
index 3041463..7eff414 100644
--- a/recipes/teamleader/webview.js
+++ b/recipes/teamleader/webview.js
@@ -4,8 +4,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
4 4
5module.exports = (Ferdi) => { 5module.exports = (Ferdi) => {
6 const getMessages = () => { 6 const getMessages = () => {
7 const unreadNotifications = parseInt(document.getElementById('notifications_amount').innerHTML); 7 Ferdi.setBadge(document.getElementById('notifications_amount').innerHTML);
8 Ferdi.setBadge(unreadNotifications);
9 }; 8 };
10 9
11 Ferdi.loop(getMessages); 10 Ferdi.loop(getMessages);