diff options
Diffstat (limited to 'recipes/tweetdeck/webview.js')
-rw-r--r-- | recipes/tweetdeck/webview.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes/tweetdeck/webview.js b/recipes/tweetdeck/webview.js index 158f767..6de7d75 100644 --- a/recipes/tweetdeck/webview.js +++ b/recipes/tweetdeck/webview.js | |||
@@ -10,7 +10,7 @@ module.exports = Ferdi => { | |||
10 | const elements = document.querySelectorAll('.msg-unread-count'); | 10 | const elements = document.querySelectorAll('.msg-unread-count'); |
11 | let count = 0; | 11 | let count = 0; |
12 | if (elements[0]) { | 12 | if (elements[0]) { |
13 | count = parseInt(elements[0].innerHTML, 10); | 13 | count = Ferdi.safeParseInt(elements[0].innerHTML); |
14 | } | 14 | } |
15 | 15 | ||
16 | Ferdi.setBadge(count); | 16 | Ferdi.setBadge(count); |