diff options
author | Vijay A <avijayr@protonmail.com> | 2021-08-31 16:25:57 +0530 |
---|---|---|
committer | Vijay A <avijayr@protonmail.com> | 2021-08-31 16:25:57 +0530 |
commit | dfae2d231e39c81827d08fd8834d736c5b3005b1 (patch) | |
tree | 5037b401e7de837fdd6046a3c61ac76aed240e6e /recipes/monday/webview.js | |
parent | New recipe: odoo (diff) | |
download | ferdium-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/monday/webview.js')
-rwxr-xr-x | recipes/monday/webview.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes/monday/webview.js b/recipes/monday/webview.js index bdd73ca..924c071 100755 --- a/recipes/monday/webview.js +++ b/recipes/monday/webview.js | |||
@@ -9,7 +9,7 @@ module.exports = Ferdi => { | |||
9 | const counters = document.querySelectorAll('.surface-control-component .item-counter, .surface-control-component .view-item-counter'); | 9 | const counters = document.querySelectorAll('.surface-control-component .item-counter, .surface-control-component .view-item-counter'); |
10 | 10 | ||
11 | for (let i = 0; i < counters.length; i++) { | 11 | for (let i = 0; i < counters.length; i++) { |
12 | count += parseInt(counters[i].textContent); | 12 | count += Ferdi.safeParseInt(counters[i].textContent); |
13 | } | 13 | } |
14 | 14 | ||
15 | Ferdi.setBadge(count); | 15 | Ferdi.setBadge(count); |