diff options
Diffstat (limited to 'recipes/vk')
-rw-r--r-- | recipes/vk/package.json | 2 | ||||
-rw-r--r-- | recipes/vk/webview.js | 4 |
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 | ||