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/steamchat/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/steamchat/webview.js')
-rw-r--r-- | recipes/steamchat/webview.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes/steamchat/webview.js b/recipes/steamchat/webview.js index b35cc6b..93e68ba 100644 --- a/recipes/steamchat/webview.js +++ b/recipes/steamchat/webview.js | |||
@@ -7,7 +7,7 @@ module.exports = Ferdi => { | |||
7 | const counters = document.querySelectorAll('[class*=FriendMessageCount]'); | 7 | const counters = document.querySelectorAll('[class*=FriendMessageCount]'); |
8 | [].filter.call(counters, countValue => { | 8 | [].filter.call(counters, countValue => { |
9 | if (countValue) { | 9 | if (countValue) { |
10 | count += parseInt(countValue.innerHTML); | 10 | count += Ferdi.safeParseInt(countValue.innerHTML); |
11 | } | 11 | } |
12 | }); | 12 | }); |
13 | 13 | ||