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/zoho/index.js | 2 +- recipes/zoho/package.json | 2 +- recipes/zoho/webview-unsafe.js | 10 +++++----- recipes/zoho/webview.js | 7 +++---- 4 files changed, 10 insertions(+), 11 deletions(-) (limited to 'recipes/zoho') diff --git a/recipes/zoho/index.js b/recipes/zoho/index.js index 23607bd..dd41f72 100644 --- a/recipes/zoho/index.js +++ b/recipes/zoho/index.js @@ -1 +1 @@ -module.exports = Ferdi => Ferdi; +module.exports = Ferdium => Ferdium; diff --git a/recipes/zoho/package.json b/recipes/zoho/package.json index e6e8823..7e4ea87 100644 --- a/recipes/zoho/package.json +++ b/recipes/zoho/package.json @@ -1,7 +1,7 @@ { "id": "zoho", "name": "Zoho Mail", - "version": "1.2.0", + "version": "1.3.0", "license": "MIT", "config": { "serviceURL": "https://www.zoho.com/mail/login.html", diff --git a/recipes/zoho/webview-unsafe.js b/recipes/zoho/webview-unsafe.js index e4026c5..eb83595 100644 --- a/recipes/zoho/webview-unsafe.js +++ b/recipes/zoho/webview-unsafe.js @@ -1,12 +1,12 @@ -//wait for Ferdi and Zoho Mail to initialize +//wait for Ferdium and Zoho Mail to initialize if ( - Object.prototype.hasOwnProperty.call(window, "ferdi") && - Object.prototype.hasOwnProperty.call(window.ferdi, "setBadge") && + Object.prototype.hasOwnProperty.call(window, "ferdium") && + Object.prototype.hasOwnProperty.call(window.ferdium, "setBadge") && Object.prototype.hasOwnProperty.call(window, "zmNCenter") && Object.prototype.hasOwnProperty.call(window, "zmfolAction") ) { var unreadNotifications = window.zmNCenter.counter.count(); //General Notifications by Zoho (Bell Icon) var unreadMail = window.zmfolAction.getUnreadViewCount(); //Unread messages count - window.ferdi.setBadge(unreadMail, unreadNotifications); -} \ No newline at end of file + window.ferdium.setBadge(unreadMail, unreadNotifications); +} diff --git a/recipes/zoho/webview.js b/recipes/zoho/webview.js index 7c833a3..02a5039 100644 --- a/recipes/zoho/webview.js +++ b/recipes/zoho/webview.js @@ -2,9 +2,9 @@ const _path = _interopRequireDefault(require('path')); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -module.exports = (Ferdi) => { +module.exports = (Ferdium) => { const getMessages = () => { - Ferdi.injectJSUnsafe(_path.default.join(__dirname, 'webview-unsafe.js')); + Ferdium.injectJSUnsafe(_path.default.join(__dirname, 'webview-unsafe.js')); }; //Zoho uses different URLs for different regions. Find out which region the account belongs to and redirect to the correct URL. @@ -18,6 +18,5 @@ module.exports = (Ferdi) => { } window.addEventListener('load', redirectRegion); - Ferdi.loop(getMessages); - + Ferdium.loop(getMessages); }; -- cgit v1.2.3-54-g00ecf