aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/webex-teams/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/webex-teams/webview.js')
-rw-r--r--recipes/webex-teams/webview.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/recipes/webex-teams/webview.js b/recipes/webex-teams/webview.js
index 3880fd2..4b66233 100644
--- a/recipes/webex-teams/webview.js
+++ b/recipes/webex-teams/webview.js
@@ -9,11 +9,7 @@ module.exports = (Ferdi) => {
9 } 9 }
10 10
11 if (span.length > 0) { 11 if (span.length > 0) {
12 count = parseInt(span[0].innerText, 10); 12 count = Ferdi.safeParseInt(span[0].innerText);
13 }
14
15 if (Number.isNaN(count)) {
16 count = 0;
17 } 13 }
18 14
19 Ferdi.setBadge(count); 15 Ferdi.setBadge(count);