aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/zoho/webview-unsafe.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/zoho/webview-unsafe.js')
-rw-r--r--recipes/zoho/webview-unsafe.js10
1 files changed, 5 insertions, 5 deletions
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}