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/ringcentral/index.js | 2 +- recipes/ringcentral/package.json | 2 +- recipes/ringcentral/webview.js | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'recipes/ringcentral') diff --git a/recipes/ringcentral/index.js b/recipes/ringcentral/index.js index 23607bd..dd41f72 100644 --- a/recipes/ringcentral/index.js +++ b/recipes/ringcentral/index.js @@ -1 +1 @@ -module.exports = Ferdi => Ferdi; +module.exports = Ferdium => Ferdium; diff --git a/recipes/ringcentral/package.json b/recipes/ringcentral/package.json index 0c8ecab..9121482 100644 --- a/recipes/ringcentral/package.json +++ b/recipes/ringcentral/package.json @@ -1,7 +1,7 @@ { "id": "ringcentral", "name": "RingCentral", - "version": "1.0.0", + "version": "1.1.0", "license": "MIT", "repository": "https://github.com/deadmeu/ferdi-ringcentral", "aliases": [ diff --git a/recipes/ringcentral/webview.js b/recipes/ringcentral/webview.js index ba4f50c..acf1cfa 100644 --- a/recipes/ringcentral/webview.js +++ b/recipes/ringcentral/webview.js @@ -1,19 +1,19 @@ -module.exports = Ferdi => { +module.exports = Ferdium => { const getMessages = () => { let directCount = 0; let indirectCount = 0; const messageCountElement = document.querySelector('#Message-umi'); if (messageCountElement) { - directCount = Ferdi.safeParseInt(messageCountElement.textContent); + directCount = Ferdium.safeParseInt(messageCountElement.textContent); } const unreadChats = document.querySelectorAll('.has-unread'); // unreadChats includes direct messages - do not count them indirectCount = unreadChats.length - directCount; - Ferdi.setBadge(directCount, indirectCount); + Ferdium.setBadge(directCount, indirectCount); }; - Ferdi.loop(getMessages); + Ferdium.loop(getMessages); }; -- cgit v1.2.3-70-g09d2