aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/steamchat
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/steamchat
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/steamchat')
-rw-r--r--recipes/steamchat/package.json2
-rw-r--r--recipes/steamchat/webview.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/recipes/steamchat/package.json b/recipes/steamchat/package.json
index 5899cc8..4edbb82 100644
--- a/recipes/steamchat/package.json
+++ b/recipes/steamchat/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "steamchat", 2 "id": "steamchat",
3 "name": "SteamChat", 3 "name": "SteamChat",
4 "version": "1.2.0", 4 "version": "1.2.1",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://steamcommunity.com/chat", 7 "serviceURL": "https://steamcommunity.com/chat",
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