aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/vk
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-08-17 10:47:32 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-08-17 10:47:32 +0530
commit212d5846427ceeacfadf5aac3f381b532f4664a1 (patch)
tree7badcbb01930e77a2b2745e189e89323111ef470 /recipes/vk
parentMoved all npm packages to the 'devDependencies' since there is no node-runtim... (diff)
downloadferdium-recipes-212d5846427ceeacfadf5aac3f381b532f4664a1.tar.gz
ferdium-recipes-212d5846427ceeacfadf5aac3f381b532f4664a1.tar.zst
ferdium-recipes-212d5846427ceeacfadf5aac3f381b532f4664a1.zip
Cleanup of recipes to remove 'NaN' of badge variables since this is handled in the main program.
Diffstat (limited to 'recipes/vk')
-rw-r--r--recipes/vk/package.json2
-rw-r--r--recipes/vk/webview.js4
2 files changed, 1 insertions, 5 deletions
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 @@
1{ 1{
2 "id": "vk", 2 "id": "vk",
3 "name": "VK", 3 "name": "VK",
4 "version": "1.0.2", 4 "version": "1.0.3",
5 "license": "MIT", 5 "license": "MIT",
6 "repository": "https://github.com/meetfranz/recipe-vk", 6 "repository": "https://github.com/meetfranz/recipe-vk",
7 "config": { 7 "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 => {
5 directs = parseInt(document.getElementsByClassName('left_count')[0].innerText, 10); 5 directs = parseInt(document.getElementsByClassName('left_count')[0].innerText, 10);
6 } 6 }
7 7
8 if (isNaN(directs)) {
9 directs = 0;
10 }
11
12 Franz.setBadge(directs); 8 Franz.setBadge(directs);
13 }; 9 };
14 10