diff options
author | 2021-08-27 18:13:24 +0530 | |
---|---|---|
committer | 2021-08-27 18:13:24 +0530 | |
commit | 155c4b832281348c16be1f4ef667e6e23dbf1bd8 (patch) | |
tree | d144e2de2e6c7fb2e334246e8a4aecdbeb08ef8d /recipes/vk | |
parent | docs: fixed template file for creating recipe. (diff) | |
download | ferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.tar.gz ferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.tar.zst ferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.zip |
chore: normalized all recipes to ensure compatibility with es6 (#639)
- Removed some calls to set badge with '0' all the time.
- Removed all 'sourceMaps' since they are all outdated atm.
Diffstat (limited to 'recipes/vk')
-rw-r--r-- | recipes/vk/index.js | 3 | ||||
-rw-r--r-- | recipes/vk/package.json | 2 | ||||
-rw-r--r-- | recipes/vk/webview.js | 7 |
3 files changed, 5 insertions, 7 deletions
diff --git a/recipes/vk/index.js b/recipes/vk/index.js index 658df32..23607bd 100644 --- a/recipes/vk/index.js +++ b/recipes/vk/index.js | |||
@@ -1,2 +1 @@ | |||
1 | module.exports = Franz => Franz; | module.exports = Ferdi => Ferdi; | |
2 | // # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInZrL2luZGV4LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoidmsvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56O1xuIl19 | ||
diff --git a/recipes/vk/package.json b/recipes/vk/package.json index 25e7bb8..19b4225 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.3", | 4 | "version": "1.1.0", |
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 ab6c619..e48866f 100644 --- a/recipes/vk/webview.js +++ b/recipes/vk/webview.js | |||
@@ -1,13 +1,12 @@ | |||
1 | module.exports = Franz => { | 1 | module.exports = Ferdi => { |
2 | const getMessages = function getMessages() { | 2 | const getMessages = function getMessages() { |
3 | let directs = 0; | 3 | let directs = 0; |
4 | if (document.getElementsByClassName('left_count').length > 0) { | 4 | if (document.getElementsByClassName('left_count').length > 0) { |
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 | Franz.setBadge(directs); | 8 | Ferdi.setBadge(directs); |
9 | }; | 9 | }; |
10 | 10 | ||
11 | Franz.loop(getMessages); | 11 | Ferdi.loop(getMessages); |
12 | }; | 12 | }; |
13 | // # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInZrL3dlYnZpZXcuanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56IiwiZ2V0TWVzc2FnZXMiLCJkaXJlY3RzIiwiZG9jdW1lbnQiLCJnZXRFbGVtZW50c0J5Q2xhc3NOYW1lIiwibGVuZ3RoIiwicGFyc2VJbnQiLCJpbm5lclRleHQiLCJpc05hTiIsInNldEJhZGdlIiwibG9vcCJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFrQkMsS0FBRCxJQUFXO0FBQzFCLFFBQU1DLGNBQWMsU0FBU0EsV0FBVCx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