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/webview.js | 3 --- 1 file changed, 3 deletions(-) (limited to 'recipes/proton-mail/webview.js') 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-70-g09d2