diff options
Diffstat (limited to 'recipes/amazon-work-mail')
-rw-r--r-- | recipes/amazon-work-mail/index.js | 2 | ||||
-rw-r--r-- | recipes/amazon-work-mail/package.json | 2 | ||||
-rw-r--r-- | recipes/amazon-work-mail/webview.js | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/recipes/amazon-work-mail/index.js b/recipes/amazon-work-mail/index.js index 23607bd..dd41f72 100644 --- a/recipes/amazon-work-mail/index.js +++ b/recipes/amazon-work-mail/index.js | |||
@@ -1 +1 @@ | |||
module.exports = Ferdi => Ferdi; | module.exports = Ferdium => Ferdium; | ||
diff --git a/recipes/amazon-work-mail/package.json b/recipes/amazon-work-mail/package.json index 0d04c13..dc41d0f 100644 --- a/recipes/amazon-work-mail/package.json +++ b/recipes/amazon-work-mail/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "amazon-work-mail", | 2 | "id": "amazon-work-mail", |
3 | "name": "Amazon WorkMail", | 3 | "name": "Amazon WorkMail", |
4 | "version": "1.1.1", | 4 | "version": "1.2.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://{teamID}.awsapps.com/mail", | 7 | "serviceURL": "https://{teamID}.awsapps.com/mail", |
diff --git a/recipes/amazon-work-mail/webview.js b/recipes/amazon-work-mail/webview.js index 44f3058..36967fd 100644 --- a/recipes/amazon-work-mail/webview.js +++ b/recipes/amazon-work-mail/webview.js | |||
@@ -11,20 +11,20 @@ const reload = EventType => | |||
11 | } | 11 | } |
12 | }); | 12 | }); |
13 | 13 | ||
14 | module.exports = Ferdi => { | 14 | module.exports = Ferdium => { |
15 | const getUnread = () => { | 15 | const getUnread = () => { |
16 | const nodes = document.querySelectorAll('.giraffe-hierarchy-node-counter'); | 16 | const nodes = document.querySelectorAll('.giraffe-hierarchy-node-counter'); |
17 | let counter = 0; | 17 | let counter = 0; |
18 | 18 | ||
19 | for (const node of nodes) { | 19 | for (const node of nodes) { |
20 | counter += Ferdi.safeParseInt(node.textContent); | 20 | counter += Ferdium.safeParseInt(node.textContent); |
21 | } | 21 | } |
22 | 22 | ||
23 | Ferdi.setBadge(counter); | 23 | Ferdium.setBadge(counter); |
24 | }; | 24 | }; |
25 | 25 | ||
26 | if (!window.location.pathname.includes('auth')) { | 26 | if (!window.location.pathname.includes('auth')) { |
27 | Ferdi.loop(getUnread); | 27 | Ferdium.loop(getUnread); |
28 | 28 | ||
29 | window.setInterval(() => { | 29 | window.setInterval(() => { |
30 | reload('click'); | 30 | reload('click'); |