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/guilded/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/guilded/webview.js')
-rw-r--r-- | recipes/guilded/webview.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes/guilded/webview.js b/recipes/guilded/webview.js index ccace71..5d56d39 100644 --- a/recipes/guilded/webview.js +++ b/recipes/guilded/webview.js | |||
@@ -6,7 +6,7 @@ module.exports = Ferdi => { | |||
6 | const innerBadge = notificationBadge.getElementsByClassName('BadgeV2-count')[0]; | 6 | const innerBadge = notificationBadge.getElementsByClassName('BadgeV2-count')[0]; |
7 | unread = innerBadge.innerText; | 7 | unread = innerBadge.innerText; |
8 | } | 8 | } |
9 | Ferdi.setBadge(parseInt(unread, 10)); | 9 | Ferdi.setBadge(unread); |
10 | }; | 10 | }; |
11 | 11 | ||
12 | Ferdi.loop(getMessages); | 12 | Ferdi.loop(getMessages); |