diff options
Diffstat (limited to 'recipes/telegram-react')
-rw-r--r-- | recipes/telegram-react/package.json | 2 | ||||
-rw-r--r-- | recipes/telegram-react/webview.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/recipes/telegram-react/package.json b/recipes/telegram-react/package.json index ae8e451..b3dbde6 100644 --- a/recipes/telegram-react/package.json +++ b/recipes/telegram-react/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "telegram-react", | 2 | "id": "telegram-react", |
3 | "name": "Telegram React", | 3 | "name": "Telegram React", |
4 | "version": "1.2.0", | 4 | "version": "1.2.1", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://webk.telegram.org", | 7 | "serviceURL": "https://webk.telegram.org", |
diff --git a/recipes/telegram-react/webview.js b/recipes/telegram-react/webview.js index b6240ff..c6111ee 100644 --- a/recipes/telegram-react/webview.js +++ b/recipes/telegram-react/webview.js | |||
@@ -5,7 +5,7 @@ module.exports = Ferdi => { | |||
5 | if (elements) { | 5 | if (elements) { |
6 | for (let i = 0; i < elements.length; i += 1) { | 6 | for (let i = 0; i < elements.length; i += 1) { |
7 | if (elements[i].querySelector('.unread') && elements[i].querySelector('.unread').innerHTML !== 0) { | 7 | if (elements[i].querySelector('.unread') && elements[i].querySelector('.unread').innerHTML !== 0) { |
8 | count += parseInt(elements[i].querySelector('.unread').innerHTML); | 8 | count += Ferdi.safeParseInt(elements[i].querySelector('.unread').innerHTML); |
9 | } | 9 | } |
10 | } | 10 | } |
11 | } | 11 | } |