diff options
author | 2022-05-15 02:24:25 -0500 | |
---|---|---|
committer | 2022-05-15 02:24:25 -0500 | |
commit | 811a30974ca10aed701312f54155d4efb7a90a02 (patch) | |
tree | 97f9488485bfc284cb44ab2bf49eacde259b51b1 /recipes/hostnet/webview.js | |
parent | Auto-corrected code with version bump for messenger and telegram recipes (diff) | |
download | ferdium-recipes-811a30974ca10aed701312f54155d4efb7a90a02.tar.gz ferdium-recipes-811a30974ca10aed701312f54155d4efb7a90a02.tar.zst ferdium-recipes-811a30974ca10aed701312f54155d4efb7a90a02.zip |
Fix unread message count for groupme and hostnet recipes
Diffstat (limited to 'recipes/hostnet/webview.js')
-rw-r--r-- | recipes/hostnet/webview.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes/hostnet/webview.js b/recipes/hostnet/webview.js index 0f0b809..9a1266f 100644 --- a/recipes/hostnet/webview.js +++ b/recipes/hostnet/webview.js | |||
@@ -1,6 +1,6 @@ | |||
1 | module.exports = Ferdium => { | 1 | module.exports = Ferdium => { |
2 | const getMessages = () => { | 2 | const getMessages = () => { |
3 | Ferdium.setBadge(Number.parseInt(document.querySelectorAll('.badge.topbar-launcherbadge')[0].firstChild.data)); | 3 | Ferdium.setBadge(Ferdium.safeParseInt(document.querySelectorAll('.badge.topbar-launcherbadge')[0].firstChild.data)); |
4 | }; | 4 | }; |
5 | 5 | ||
6 | Ferdium.loop(getMessages); | 6 | Ferdium.loop(getMessages); |