diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2022-04-18 06:51:50 -0500 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2022-04-18 06:51:50 -0500 |
commit | 18801ed0c02627e87639dc0848cab44dacc18be2 (patch) | |
tree | 15e56ba66c68bf7b4594e6c9fdef44e037b4be31 /recipes/chatra/webview.js | |
parent | Remove deprecated webPreference flag (diff) | |
download | ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.gz ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.zst ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.zip |
Rebranded from 'ferdi' to 'ferdium' (companion changes for the main repo PR #2)
Diffstat (limited to 'recipes/chatra/webview.js')
-rw-r--r-- | recipes/chatra/webview.js | 8 |
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 @@ | |||
1 | module.exports = (Ferdi) => { | 1 | module.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 | }; |