From 212d5846427ceeacfadf5aac3f381b532f4664a1 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Tue, 17 Aug 2021 10:47:32 +0530 Subject: Cleanup of recipes to remove 'NaN' of badge variables since this is handled in the main program. --- recipes/proton-mail/package.json | 2 +- recipes/proton-mail/webview.js | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'recipes/proton-mail') diff --git a/recipes/proton-mail/package.json b/recipes/proton-mail/package.json index 35952fc..da08733 100644 --- a/recipes/proton-mail/package.json +++ b/recipes/proton-mail/package.json @@ -1,7 +1,7 @@ { "id": "proton-mail", "name": "ProtonMail", - "version": "1.2.3", + "version": "1.2.4", "license": "MIT", "config": { "serviceURL": "https://mail.protonmail.com/login" diff --git a/recipes/proton-mail/webview.js b/recipes/proton-mail/webview.js index fd1a865..2417309 100644 --- a/recipes/proton-mail/webview.js +++ b/recipes/proton-mail/webview.js @@ -6,9 +6,6 @@ module.exports = Franz => { } const text = element.innerText; const count = Number(text.substring(1, text.length - 1)); - if (Number.isNaN(count)) { - return; - } Franz.setBadge(count); } -- cgit v1.2.3-54-g00ecf