aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/vk/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/vk/webview.js')
-rw-r--r--recipes/vk/webview.js10
1 files changed, 5 insertions, 5 deletions
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};