From 811a30974ca10aed701312f54155d4efb7a90a02 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Sun, 15 May 2022 02:24:25 -0500 Subject: Fix unread message count for groupme and hostnet recipes --- recipes/hostnet/package.json | 2 +- recipes/hostnet/webview.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'recipes/hostnet') diff --git a/recipes/hostnet/package.json b/recipes/hostnet/package.json index f7bd962..24487b8 100644 --- a/recipes/hostnet/package.json +++ b/recipes/hostnet/package.json @@ -1,7 +1,7 @@ { "id": "hostnet", "name": "Hostnet", - "version": "1.2.0", + "version": "1.2.1", "license": "MIT", "config": { "serviceURL": "https://appsuite.hostnet.nl/appsuite/" 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 @@ module.exports = Ferdium => { const getMessages = () => { - Ferdium.setBadge(Number.parseInt(document.querySelectorAll('.badge.topbar-launcherbadge')[0].firstChild.data)); + Ferdium.setBadge(Ferdium.safeParseInt(document.querySelectorAll('.badge.topbar-launcherbadge')[0].firstChild.data)); }; Ferdium.loop(getMessages); -- cgit v1.2.3-70-g09d2