diff options
Diffstat (limited to 'recipes/riseup')
-rw-r--r-- | recipes/riseup/package.json | 2 | ||||
-rw-r--r-- | recipes/riseup/webview.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/recipes/riseup/package.json b/recipes/riseup/package.json index 82689aa..fa26c13 100644 --- a/recipes/riseup/package.json +++ b/recipes/riseup/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "riseup", | 2 | "id": "riseup", |
3 | "name": "Riseup.net", | 3 | "name": "Riseup.net", |
4 | "version": "1.1.1", | 4 | "version": "1.1.2", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://mail.riseup.net" | 7 | "serviceURL": "https://mail.riseup.net" |
diff --git a/recipes/riseup/webview.js b/recipes/riseup/webview.js index 7cbb736..0fb21f8 100644 --- a/recipes/riseup/webview.js +++ b/recipes/riseup/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('unreadcount')[0]; | 4 | const notificationBadge = document.getElementsByClassName('unreadcount')[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 | }; |