diff options
Diffstat (limited to 'recipes/todoist/webview.js')
-rw-r--r-- | recipes/todoist/webview.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes/todoist/webview.js b/recipes/todoist/webview.js index a65be91..b548184 100644 --- a/recipes/todoist/webview.js +++ b/recipes/todoist/webview.js | |||
@@ -6,11 +6,11 @@ module.exports = (Ferdi) => { | |||
6 | const inboxElement = document.querySelector('#filter_inbox .item_counter'); | 6 | const inboxElement = document.querySelector('#filter_inbox .item_counter'); |
7 | 7 | ||
8 | if (todayElement) { | 8 | if (todayElement) { |
9 | todayCount = parseInt(todayElement.innerHTML, 10); | 9 | todayCount = Ferdi.safeParseInt(todayElement.innerHTML); |
10 | } | 10 | } |
11 | 11 | ||
12 | if (inboxElement) { | 12 | if (inboxElement) { |
13 | inboxCount = parseInt(inboxElement.innerHTML, 10); | 13 | inboxCount = Ferdi.safeParseInt(inboxElement.innerHTML); |
14 | } | 14 | } |
15 | 15 | ||
16 | Ferdi.setBadge(inboxCount, todayCount); | 16 | Ferdi.setBadge(inboxCount, todayCount); |