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/vk/package.json | 2 +- recipes/vk/webview.js | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'recipes/vk') diff --git a/recipes/vk/package.json b/recipes/vk/package.json index 50a25f6..25e7bb8 100644 --- a/recipes/vk/package.json +++ b/recipes/vk/package.json @@ -1,7 +1,7 @@ { "id": "vk", "name": "VK", - "version": "1.0.2", + "version": "1.0.3", "license": "MIT", "repository": "https://github.com/meetfranz/recipe-vk", "config": { diff --git a/recipes/vk/webview.js b/recipes/vk/webview.js index fcf0571..ab6c619 100644 --- a/recipes/vk/webview.js +++ b/recipes/vk/webview.js @@ -5,10 +5,6 @@ module.exports = Franz => { directs = parseInt(document.getElementsByClassName('left_count')[0].innerText, 10); } - if (isNaN(directs)) { - directs = 0; - } - Franz.setBadge(directs); }; -- cgit v1.2.3-54-g00ecf