diff options
Diffstat (limited to 'recipes/teamwork-projects/webview.js')
-rw-r--r-- | recipes/teamwork-projects/webview.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes/teamwork-projects/webview.js b/recipes/teamwork-projects/webview.js index 94e8dd0..734eb4f 100644 --- a/recipes/teamwork-projects/webview.js +++ b/recipes/teamwork-projects/webview.js | |||
@@ -4,7 +4,7 @@ module.exports = (Ferdi) => { | |||
4 | const badge = document.getElementById('numNotifs2'); | 4 | const badge = document.getElementById('numNotifs2'); |
5 | 5 | ||
6 | if (badge && badge.innerText) { | 6 | if (badge && badge.innerText) { |
7 | indirectCount = parseInt(badge.innerText); | 7 | indirectCount = Ferdi.safeParseInt(badge.innerText); |
8 | } | 8 | } |
9 | 9 | ||
10 | Ferdi.setBadge(0, indirectCount); | 10 | Ferdi.setBadge(0, indirectCount); |