From dfae2d231e39c81827d08fd8834d736c5b3005b1 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Tue, 31 Aug 2021 16:25:57 +0530 Subject: refactor: Use Ferdi.safeParseInt to ensure that parsing is done consistently in all recipes. --- recipes/riseup/package.json | 2 +- recipes/riseup/webview.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'recipes/riseup') diff --git a/recipes/riseup/package.json b/recipes/riseup/package.json index 73f3234..82689aa 100644 --- a/recipes/riseup/package.json +++ b/recipes/riseup/package.json @@ -1,7 +1,7 @@ { "id": "riseup", "name": "Riseup.net", - "version": "1.1.0", + "version": "1.1.1", "license": "MIT", "config": { "serviceURL": "https://mail.riseup.net" diff --git a/recipes/riseup/webview.js b/recipes/riseup/webview.js index 2a5f91f..7cbb736 100644 --- a/recipes/riseup/webview.js +++ b/recipes/riseup/webview.js @@ -5,7 +5,7 @@ module.exports = Ferdi => { if (notificationBadge != undefined) { unread = notificationBadge.innerText; } - Ferdi.setBadge(parseInt(unread, 10)); + Ferdi.setBadge(unread); }; Ferdi.loop(getMessages); -- cgit v1.2.3-70-g09d2