aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/zoho
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/zoho
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/zoho')
-rw-r--r--recipes/zoho/index.js2
-rw-r--r--recipes/zoho/package.json2
-rw-r--r--recipes/zoho/webview-unsafe.js10
-rw-r--r--recipes/zoho/webview.js7
4 files changed, 10 insertions, 11 deletions
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 @@
1{ 1{
2 "id": "zoho", 2 "id": "zoho",
3 "name": "Zoho Mail", 3 "name": "Zoho Mail",
4 "version": "1.2.0", 4 "version": "1.3.0",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://www.zoho.com/mail/login.html", 7 "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 @@
1//wait for Ferdi and Zoho Mail to initialize 1//wait for Ferdium and Zoho Mail to initialize
2if ( 2if (
3 Object.prototype.hasOwnProperty.call(window, "ferdi") && 3 Object.prototype.hasOwnProperty.call(window, "ferdium") &&
4 Object.prototype.hasOwnProperty.call(window.ferdi, "setBadge") && 4 Object.prototype.hasOwnProperty.call(window.ferdium, "setBadge") &&
5 Object.prototype.hasOwnProperty.call(window, "zmNCenter") && 5 Object.prototype.hasOwnProperty.call(window, "zmNCenter") &&
6 Object.prototype.hasOwnProperty.call(window, "zmfolAction") 6 Object.prototype.hasOwnProperty.call(window, "zmfolAction")
7) { 7) {
8 var unreadNotifications = window.zmNCenter.counter.count(); //General Notifications by Zoho (Bell Icon) 8 var unreadNotifications = window.zmNCenter.counter.count(); //General Notifications by Zoho (Bell Icon)
9 var unreadMail = window.zmfolAction.getUnreadViewCount(); //Unread messages count 9 var unreadMail = window.zmfolAction.getUnreadViewCount(); //Unread messages count
10 10
11 window.ferdi.setBadge(unreadMail, unreadNotifications); 11 window.ferdium.setBadge(unreadMail, unreadNotifications);
12} \ No newline at end of file 12}
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'));
2 2
3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4 4
5module.exports = (Ferdi) => { 5module.exports = (Ferdium) => {
6 const getMessages = () => { 6 const getMessages = () => {
7 Ferdi.injectJSUnsafe(_path.default.join(__dirname, 'webview-unsafe.js')); 7 Ferdium.injectJSUnsafe(_path.default.join(__dirname, 'webview-unsafe.js'));
8 }; 8 };
9 9
10 //Zoho uses different URLs for different regions. Find out which region the account belongs to and redirect to the correct URL. 10 //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) => {
18 } 18 }
19 19
20 window.addEventListener('load', redirectRegion); 20 window.addEventListener('load', redirectRegion);
21 Ferdi.loop(getMessages); 21 Ferdium.loop(getMessages);
22
23}; 22};