diff options
Diffstat (limited to 'recipes/nextdoor')
-rw-r--r-- | recipes/nextdoor/package.json | 2 | ||||
-rw-r--r-- | recipes/nextdoor/webview.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/recipes/nextdoor/package.json b/recipes/nextdoor/package.json index 2b40f9d..b028c19 100644 --- a/recipes/nextdoor/package.json +++ b/recipes/nextdoor/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "nextdoor", | 2 | "id": "nextdoor", |
3 | "name": "Nextdoor", | 3 | "name": "Nextdoor", |
4 | "version": "1.1.1", | 4 | "version": "1.1.2", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://nextdoor.co.uk/inbox/" | 7 | "serviceURL": "https://nextdoor.co.uk/inbox/" |
diff --git a/recipes/nextdoor/webview.js b/recipes/nextdoor/webview.js index fbac111..503d9a4 100644 --- a/recipes/nextdoor/webview.js +++ b/recipes/nextdoor/webview.js | |||
@@ -1,9 +1,9 @@ | |||
1 | module.exports = Ferdi => { | 1 | module.exports = Ferdi => { |
2 | const getMessages = function getMessages() { | 2 | const getMessages = () => { |
3 | let unread = 0; | 3 | let unread = 0; |
4 | const notificationBadge = document.getElementsByClassName('notification-badge')[0]; | 4 | const notificationBadge = document.getElementsByClassName('notification-badge')[0]; |
5 | if (notificationBadge != undefined) { | 5 | if (notificationBadge != undefined) { |
6 | unread = notificationBadge.innerText; | 6 | unread = Ferdi.safeParseInt(notificationBadge.innerText); |
7 | } | 7 | } |
8 | Ferdi.setBadge(unread); | 8 | Ferdi.setBadge(unread); |
9 | }; | 9 | }; |