diff options
Diffstat (limited to 'recipes/office365-owa')
-rw-r--r-- | recipes/office365-owa/index.js | 4 | ||||
-rw-r--r-- | recipes/office365-owa/package.json | 2 | ||||
-rw-r--r-- | recipes/office365-owa/webview.js | 10 |
3 files changed, 8 insertions, 8 deletions
diff --git a/recipes/office365-owa/index.js b/recipes/office365-owa/index.js index 89568a6..2b10475 100644 --- a/recipes/office365-owa/index.js +++ b/recipes/office365-owa/index.js | |||
@@ -1,5 +1,5 @@ | |||
1 | module.exports = Ferdi => class Outlook extends Ferdi { | 1 | module.exports = Ferdium => class Outlook extends Ferdium { |
2 | overrideUserAgent() { | 2 | overrideUserAgent() { |
3 | return window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim(); | 3 | return window.navigator.userAgent.replace(/(Ferdium|Electron)\/\S+ \([^)]+\)/g, '').trim(); |
4 | } | 4 | } |
5 | }; | 5 | }; |
diff --git a/recipes/office365-owa/package.json b/recipes/office365-owa/package.json index 56690e2..bcdb8ba 100644 --- a/recipes/office365-owa/package.json +++ b/recipes/office365-owa/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "office365-owa", | 2 | "id": "office365-owa", |
3 | "name": "Office 365 Outlook", | 3 | "name": "Office 365 Outlook", |
4 | "version": "1.5.0", | 4 | "version": "1.6.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "aliases": [ | 6 | "aliases": [ |
7 | "live.com" | 7 | "live.com" |
diff --git a/recipes/office365-owa/webview.js b/recipes/office365-owa/webview.js index 17649fd..70790f0 100644 --- a/recipes/office365-owa/webview.js +++ b/recipes/office365-owa/webview.js | |||
@@ -1,4 +1,4 @@ | |||
1 | module.exports = (Ferdi, settings) => { | 1 | module.exports = (Ferdium, settings) => { |
2 | const collectCounts = selector => { | 2 | const collectCounts = selector => { |
3 | let unreadCount = 0; | 3 | let unreadCount = 0; |
4 | const foldersElement = document.querySelector(selector); | 4 | const foldersElement = document.querySelector(selector); |
@@ -8,7 +8,7 @@ module.exports = (Ferdi, settings) => { | |||
8 | ); | 8 | ); |
9 | for (const child of allScreenReaders) { | 9 | for (const child of allScreenReaders) { |
10 | if (child.previousSibling) { | 10 | if (child.previousSibling) { |
11 | unreadCount += Ferdi.safeParseInt(child.previousSibling.textContent); | 11 | unreadCount += Ferdium.safeParseInt(child.previousSibling.textContent); |
12 | } | 12 | } |
13 | } | 13 | } |
14 | } | 14 | } |
@@ -21,7 +21,7 @@ module.exports = (Ferdi, settings) => { | |||
21 | 21 | ||
22 | if (/\/owa/.test(location.pathname)) { | 22 | if (/\/owa/.test(location.pathname)) { |
23 | // classic app | 23 | // classic app |
24 | directUnreadCount = Ferdi.safeParseInt( | 24 | directUnreadCount = Ferdium.safeParseInt( |
25 | document.querySelectorAll("span[title*='Inbox'] + div > span")[0] | 25 | document.querySelectorAll("span[title*='Inbox'] + div > span")[0] |
26 | .textContent, | 26 | .textContent, |
27 | ); | 27 | ); |
@@ -35,8 +35,8 @@ module.exports = (Ferdi, settings) => { | |||
35 | indirectUnreadCount = collectCounts('div[role=tree]:nth-child(4)'); // groups | 35 | indirectUnreadCount = collectCounts('div[role=tree]:nth-child(4)'); // groups |
36 | } | 36 | } |
37 | 37 | ||
38 | Ferdi.setBadge(directUnreadCount, indirectUnreadCount); | 38 | Ferdium.setBadge(directUnreadCount, indirectUnreadCount); |
39 | }; | 39 | }; |
40 | 40 | ||
41 | Ferdi.loop(getMessages); | 41 | Ferdium.loop(getMessages); |
42 | }; | 42 | }; |