aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/vk
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/vk')
-rw-r--r--recipes/vk/index.js2
-rw-r--r--recipes/vk/package.json2
-rw-r--r--recipes/vk/webview.js10
3 files changed, 7 insertions, 7 deletions
diff --git a/recipes/vk/index.js b/recipes/vk/index.js
index 23607bd..dd41f72 100644
--- a/recipes/vk/index.js
+++ b/recipes/vk/index.js
@@ -1 +1 @@
module.exports = Ferdi => Ferdi; module.exports = Ferdium => Ferdium;
diff --git a/recipes/vk/package.json b/recipes/vk/package.json
index e61c166..f721d6d 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.1.3", 4 "version": "1.2.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 6756363..aac23c3 100644
--- a/recipes/vk/webview.js
+++ b/recipes/vk/webview.js
@@ -1,12 +1,12 @@
1module.exports = Ferdi => { 1module.exports = Ferdium => {
2 const getMessages = () => { 2 const getMessages = () => {
3 let directs = 0; 3 let directs = 0;
4 const element = document.querySelectorAll('.left_count'); 4 const element = document.querySelectorAll('.left_count');
5 if (element.length > 0) { 5 if (element.length > 0) {
6 directs = Ferdi.safeParseInt(element[0].textContent); 6 directs = Ferdium.safeParseInt(element[0].textContent);
7 } 7 }
8 8
9 Ferdi.setBadge(directs); 9 Ferdium.setBadge(directs);
10 }; 10 };
11 11
12 const getActiveDialogTitle = () => { 12 const getActiveDialogTitle = () => {
@@ -17,7 +17,7 @@ module.exports = Ferdi => {
17 document.querySelector('.im-page_history-show ._im_page_peer_name'), 17 document.querySelector('.im-page_history-show ._im_page_peer_name'),
18 ].find(Boolean); 18 ].find(Boolean);
19 19
20 Ferdi.setDialogTitle(element ? element.textContent : null); 20 Ferdium.setDialogTitle(element ? element.textContent : null);
21 }; 21 };
22 22
23 const loopFunc = () => { 23 const loopFunc = () => {
@@ -25,5 +25,5 @@ module.exports = Ferdi => {
25 getActiveDialogTitle(); 25 getActiveDialogTitle();
26 }; 26 };
27 27
28 Ferdi.loop(loopFunc); 28 Ferdium.loop(loopFunc);
29}; 29};