aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/chatra/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/chatra/webview.js')
-rw-r--r--recipes/chatra/webview.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/recipes/chatra/webview.js b/recipes/chatra/webview.js
index a82a78d..c1e6b7f 100644
--- a/recipes/chatra/webview.js
+++ b/recipes/chatra/webview.js
@@ -1,4 +1,4 @@
1module.exports = (Ferdi) => { 1module.exports = (Ferdium) => {
2 const getMessages = () => { 2 const getMessages = () => {
3 // get new conversations in My Queue 3 // get new conversations in My Queue
4 const myQueue = $('.super-nav a.super-nav__item.js-from-super-to-nav[href^="/chat/box:my"] .count').not('.count--gray').text(); 4 const myQueue = $('.super-nav a.super-nav__item.js-from-super-to-nav[href^="/chat/box:my"] .count').not('.count--gray').text();
@@ -6,11 +6,11 @@ module.exports = (Ferdi) => {
6 // get all missed conversations 6 // get all missed conversations
7 const missed = $('.super-nav a.super-nav__item.js-from-super-to-nav[href^="/chat/box:missed"] .count').text(); 7 const missed = $('.super-nav a.super-nav__item.js-from-super-to-nav[href^="/chat/box:missed"] .count').text();
8 8
9 // set Ferdi badge 9 // set Ferdium badge
10 // myQueue => New conversations in My Queue 10 // myQueue => New conversations in My Queue
11 // missed => All missed conversations 11 // missed => All missed conversations
12 Ferdi.setBadge(myQueue, missed); 12 Ferdium.setBadge(myQueue, missed);
13 }; 13 };
14 14
15 Ferdi.loop(getMessages); 15 Ferdium.loop(getMessages);
16}; 16};