aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/zoho/webview-unsafe.js
diff options
context:
space:
mode:
authorLibravatar MCMXC <16797721+mcmxcdev@users.noreply.github.com>2023-07-26 06:29:03 -0600
committerLibravatar GitHub <noreply@github.com>2023-07-26 17:59:03 +0530
commit9b8f01716774a960073e944823ab727cc867a8f6 (patch)
tree732b83770baa78f5cf12776aaa33ce65bebfa418 /recipes/zoho/webview-unsafe.js
parentAdd Excalidraw recipe (#393) (diff)
downloadferdium-recipes-9b8f01716774a960073e944823ab727cc867a8f6.tar.gz
ferdium-recipes-9b8f01716774a960073e944823ab727cc867a8f6.tar.zst
ferdium-recipes-9b8f01716774a960073e944823ab727cc867a8f6.zip
chore: improve lint setup (#397)
- update eslint config to closely mirror the ones from ferdium-app - add .eslintignore - opt in to eslint `reportUnusedDisableDirectives` config option - remove `trailingComma: all` from `prettier` config which is default in `prettier` v3 - autofix or disable a lot of lint issues throughout codebase - add `volta` configuration to `package.json` to autoload correct `node` and `pnpm` versions - upgrade all `eslint` and `prettier` related dependencies to latest - update lint:fix npm script - reformat touched files with prettier - bumped up minor version for all recipes that have changes - introduced injection of 'service.css' where it was missing in many recipes --------- Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
Diffstat (limited to 'recipes/zoho/webview-unsafe.js')
-rw-r--r--recipes/zoho/webview-unsafe.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/recipes/zoho/webview-unsafe.js b/recipes/zoho/webview-unsafe.js
index eb83595..df5237b 100644
--- a/recipes/zoho/webview-unsafe.js
+++ b/recipes/zoho/webview-unsafe.js
@@ -1,12 +1,12 @@
1//wait for Ferdium and Zoho Mail to initialize 1// wait for Ferdium and Zoho Mail to initialize
2if ( 2if (
3 Object.prototype.hasOwnProperty.call(window, "ferdium") && 3 Object.prototype.hasOwnProperty.call(window, 'ferdium') &&
4 Object.prototype.hasOwnProperty.call(window.ferdium, "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 const unreadNotifications = window.zmNCenter.counter.count(); // General Notifications by Zoho (Bell Icon)
9 var unreadMail = window.zmfolAction.getUnreadViewCount(); //Unread messages count 9 const unreadMail = window.zmfolAction.getUnreadViewCount(); // Unread messages count
10 10
11 window.ferdium.setBadge(unreadMail, unreadNotifications); 11 window.ferdium.setBadge(unreadMail, unreadNotifications);
12} 12}