aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/teamleader/webview.js
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/webview.js
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/webview.js')
-rw-r--r--recipes/teamleader/webview.js3
1 files changed, 1 insertions, 2 deletions
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);