From 18801ed0c02627e87639dc0848cab44dacc18be2 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Mon, 18 Apr 2022 06:51:50 -0500 Subject: Rebranded from 'ferdi' to 'ferdium' (companion changes for the main repo PR #2) --- recipes/mattermost/index.js | 2 +- recipes/mattermost/package.json | 2 +- recipes/mattermost/webview.js | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'recipes/mattermost') 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 @@ -module.exports = Ferdi => class Mattermost extends Ferdi { +module.exports = Ferdium => class Mattermost extends Ferdium { async validateUrl(url) { try { 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 @@ { "id": "mattermost", "name": "Mattermost", - "version": "1.3.1", + "version": "1.4.0", "license": "MIT", "config": { "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 @@ -module.exports = Ferdi => { +module.exports = Ferdium => { const DIRECT_MESSAGES_INDIVIDUAL = '#sidebar-left .unread-title .DirectChannel__profile-picture'; const DIRECT_MESSAGES_GROUP = '#sidebar-left .unread-title .status--group'; const DIRECT_MESSAGES_LEGACY = '.sidebar--left .has-badge .badge'; @@ -15,8 +15,8 @@ module.exports = Ferdi => { const teamDirectMessages = document.querySelectorAll('.team-wrapper .team-container .badge').length; const teamMessages = document.querySelectorAll('.team-wrapper .unread').length - teamDirectMessages; - Ferdi.setBadge(directMessages + teamDirectMessages, allMessages + teamMessages); + Ferdium.setBadge(directMessages + teamDirectMessages, allMessages + teamMessages); }; - Ferdi.loop(getMessages); + Ferdium.loop(getMessages); }; -- cgit v1.2.3-54-g00ecf