diff options
Diffstat (limited to 'recipes/todoist')
-rw-r--r-- | recipes/todoist/package.json | 2 | ||||
-rw-r--r-- | recipes/todoist/webview.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/recipes/todoist/package.json b/recipes/todoist/package.json index ddcf188..dda30c8 100644 --- a/recipes/todoist/package.json +++ b/recipes/todoist/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "todoist", | 2 | "id": "todoist", |
3 | "name": "Todoist", | 3 | "name": "Todoist", |
4 | "version": "1.3.0", | 4 | "version": "1.3.1", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "repository": "https://github.com/meetfranz/recipe-todoist", | 6 | "repository": "https://github.com/meetfranz/recipe-todoist", |
7 | "config": { | 7 | "config": { |
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); |