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/chatwoot/index.js | 2 +- recipes/chatwoot/package.json | 3 +-- recipes/chatwoot/webview.js | 8 ++++---- 3 files changed, 6 insertions(+), 7 deletions(-) (limited to 'recipes/chatwoot') diff --git a/recipes/chatwoot/index.js b/recipes/chatwoot/index.js index 653b54c..244fe33 100644 --- a/recipes/chatwoot/index.js +++ b/recipes/chatwoot/index.js @@ -1 +1 @@ -module.exports = (Ferdi) => Ferdi; +module.exports = (Ferdium) => Ferdium; diff --git a/recipes/chatwoot/package.json b/recipes/chatwoot/package.json index 6c024e7..c3c1a79 100644 --- a/recipes/chatwoot/package.json +++ b/recipes/chatwoot/package.json @@ -1,11 +1,10 @@ { "id": "chatwoot", "name": "Chatwoot", - "version": "1.0.0", + "version": "1.1.0", "license": "MIT", "repository": "https://github.com/maximeMD/ferdi-chatwoot", "config": { "serviceURL": "https://app.chatwoot.com/app/login" } } - \ No newline at end of file diff --git a/recipes/chatwoot/webview.js b/recipes/chatwoot/webview.js index 05e33b3..d61b87f 100644 --- a/recipes/chatwoot/webview.js +++ b/recipes/chatwoot/webview.js @@ -1,14 +1,14 @@ -module.exports = (Ferdi) => { +module.exports = (Ferdium) => { const getMessages = function getMessages() { const unreadBadges = document.querySelectorAll("span.unread"); const unreadBadgesArray = [...unreadBadges]; const unreadMessagesCount = unreadBadgesArray.reduce( (previousValue, currentBadge) => - previousValue + Ferdi.safeParseInt(currentBadge.textContent), + previousValue + Ferdium.safeParseInt(currentBadge.textContent), 0, ); - Ferdi.setBadge(unreadMessagesCount); + Ferdium.setBadge(unreadMessagesCount); }; - Ferdi.loop(getMessages); + Ferdium.loop(getMessages); }; -- cgit v1.2.3-70-g09d2