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/nextdoor/package.json | 2 +- recipes/nextdoor/webview.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'recipes/nextdoor') 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 @@ { "id": "nextdoor", "name": "Nextdoor", - "version": "1.1.1", + "version": "1.1.2", "license": "MIT", "config": { "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 @@ module.exports = Ferdi => { - const getMessages = function getMessages() { + const getMessages = () => { let unread = 0; const notificationBadge = document.getElementsByClassName('notification-badge')[0]; if (notificationBadge != undefined) { - unread = notificationBadge.innerText; + unread = Ferdi.safeParseInt(notificationBadge.innerText); } Ferdi.setBadge(unread); }; -- cgit v1.2.3-54-g00ecf