diff options
author | 2021-08-31 16:25:57 +0530 | |
---|---|---|
committer | 2021-08-31 16:25:57 +0530 | |
commit | dfae2d231e39c81827d08fd8834d736c5b3005b1 (patch) | |
tree | 5037b401e7de837fdd6046a3c61ac76aed240e6e /recipes/lark/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/lark/webview.js')
-rw-r--r-- | recipes/lark/webview.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/recipes/lark/webview.js b/recipes/lark/webview.js index 5e32219..33d0fc9 100644 --- a/recipes/lark/webview.js +++ b/recipes/lark/webview.js | |||
@@ -9,8 +9,7 @@ module.exports = (Ferdi) => { | |||
9 | Ferdi.setBadge(0); | 9 | Ferdi.setBadge(0); |
10 | return; | 10 | return; |
11 | } | 11 | } |
12 | const messages = parseInt(ele[0].innerHTML, 10); | 12 | Ferdi.setBadge(ele[0].innerHTML); |
13 | Ferdi.setBadge(messages); | ||
14 | }; | 13 | }; |
15 | 14 | ||
16 | Ferdi.loop(getMessages); | 15 | Ferdi.loop(getMessages); |