aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/mattermost
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/mattermost
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/mattermost')
-rw-r--r--recipes/mattermost/index.js2
-rw-r--r--recipes/mattermost/package.json2
-rw-r--r--recipes/mattermost/webview.js6
3 files changed, 5 insertions, 5 deletions
diff --git a/recipes/mattermost/index.js b/recipes/mattermost/index.js
index 3a9a791..fca10e1 100644
--- a/recipes/mattermost/index.js
+++ b/recipes/mattermost/index.js
@@ -1,4 +1,4 @@
1module.exports = Ferdi => class Mattermost extends Ferdi { 1module.exports = Ferdium => class Mattermost extends Ferdium {
2 async validateUrl(url) { 2 async validateUrl(url) {
3 try { 3 try {
4 const resp = await window.fetch(url, { 4 const resp = await window.fetch(url, {
diff --git a/recipes/mattermost/package.json b/recipes/mattermost/package.json
index c9e6c16..457973d 100644
--- a/recipes/mattermost/package.json
+++ b/recipes/mattermost/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "mattermost", 2 "id": "mattermost",
3 "name": "Mattermost", 3 "name": "Mattermost",
4 "version": "1.3.1", 4 "version": "1.4.0",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "hasNotificationSound": true, 7 "hasNotificationSound": true,
diff --git a/recipes/mattermost/webview.js b/recipes/mattermost/webview.js
index 179a43a..32e990e 100644
--- a/recipes/mattermost/webview.js
+++ b/recipes/mattermost/webview.js
@@ -1,4 +1,4 @@
1module.exports = Ferdi => { 1module.exports = Ferdium => {
2 const DIRECT_MESSAGES_INDIVIDUAL = '#sidebar-left .unread-title .DirectChannel__profile-picture'; 2 const DIRECT_MESSAGES_INDIVIDUAL = '#sidebar-left .unread-title .DirectChannel__profile-picture';
3 const DIRECT_MESSAGES_GROUP = '#sidebar-left .unread-title .status--group'; 3 const DIRECT_MESSAGES_GROUP = '#sidebar-left .unread-title .status--group';
4 const DIRECT_MESSAGES_LEGACY = '.sidebar--left .has-badge .badge'; 4 const DIRECT_MESSAGES_LEGACY = '.sidebar--left .has-badge .badge';
@@ -15,8 +15,8 @@ module.exports = Ferdi => {
15 const teamDirectMessages = document.querySelectorAll('.team-wrapper .team-container .badge').length; 15 const teamDirectMessages = document.querySelectorAll('.team-wrapper .team-container .badge').length;
16 const teamMessages = document.querySelectorAll('.team-wrapper .unread').length - teamDirectMessages; 16 const teamMessages = document.querySelectorAll('.team-wrapper .unread').length - teamDirectMessages;
17 17
18 Ferdi.setBadge(directMessages + teamDirectMessages, allMessages + teamMessages); 18 Ferdium.setBadge(directMessages + teamDirectMessages, allMessages + teamMessages);
19 }; 19 };
20 20
21 Ferdi.loop(getMessages); 21 Ferdium.loop(getMessages);
22}; 22};