From 7517a409a1a502c747eb4598492a88cec4e8d58c Mon Sep 17 00:00:00 2001 From: Vijay A Date: Sun, 19 Sep 2021 07:26:25 +0530 Subject: fix: fix js error; styling --- recipes/riseup/package.json | 2 +- recipes/riseup/webview.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'recipes/riseup') 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 @@ { "id": "riseup", "name": "Riseup.net", - "version": "1.1.1", + "version": "1.1.2", "license": "MIT", "config": { "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 @@ module.exports = Ferdi => { - const getMessages = function getMessages() { + const getMessages = () => { let unread = 0; const notificationBadge = document.getElementsByClassName('unreadcount')[0]; if (notificationBadge != undefined) { - unread = notificationBadge.innerText; + unread = Ferdi.safeParseInt(notificationBadge.innerText); } Ferdi.setBadge(unread); }; -- cgit v1.2.3-70-g09d2