aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/chatra
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2022-04-18 06:51:50 -0500
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2022-04-18 06:51:50 -0500
commit18801ed0c02627e87639dc0848cab44dacc18be2 (patch)
tree15e56ba66c68bf7b4594e6c9fdef44e037b4be31 /recipes/chatra
parentRemove deprecated webPreference flag (diff)
downloadferdium-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')
-rw-r--r--recipes/chatra/index.js2
-rw-r--r--recipes/chatra/package.json2
-rw-r--r--recipes/chatra/webview.js8
3 files changed, 6 insertions, 6 deletions
diff --git a/recipes/chatra/index.js b/recipes/chatra/index.js
index 23607bd..dd41f72 100644
--- a/recipes/chatra/index.js
+++ b/recipes/chatra/index.js
@@ -1 +1 @@
module.exports = Ferdi => Ferdi; module.exports = Ferdium => Ferdium;
diff --git a/recipes/chatra/package.json b/recipes/chatra/package.json
index ecca6aa..22fa8c0 100644
--- a/recipes/chatra/package.json
+++ b/recipes/chatra/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "chatra", 2 "id": "chatra",
3 "name": "Chatra", 3 "name": "Chatra",
4 "version": "1.1.2", 4 "version": "1.2.0",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://app.chatra.io/", 7 "serviceURL": "https://app.chatra.io/",
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};