diff options
Diffstat (limited to 'recipes/amazon-work-mail/webview.js')
-rw-r--r-- | recipes/amazon-work-mail/webview.js | 8 |
1 files changed, 4 insertions, 4 deletions
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'); |