diff options
author | 2023-07-26 16:35:49 +0000 | |
---|---|---|
committer | 2023-07-26 22:05:49 +0530 | |
commit | f9e2d9926e4dff14df0f13858a9c695e2118a94e (patch) | |
tree | 53f1cad4edde7436fa521deb002e14830809bb8b /recipes/office365-owa | |
parent | chore: improve lint setup (#397) (diff) | |
download | ferdium-recipes-f9e2d9926e4dff14df0f13858a9c695e2118a94e.tar.gz ferdium-recipes-f9e2d9926e4dff14df0f13858a9c695e2118a94e.tar.zst ferdium-recipes-f9e2d9926e4dff14df0f13858a9c695e2118a94e.zip |
Improve lint setup (#400)
* Use strict configuration of node/npm/pnpm
* When generating a new recipe, string replace should handle all placeholders in a single file
Diffstat (limited to 'recipes/office365-owa')
-rw-r--r-- | recipes/office365-owa/package.json | 2 | ||||
-rw-r--r-- | recipes/office365-owa/webview.js | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/recipes/office365-owa/package.json b/recipes/office365-owa/package.json index 72082ab..b714e11 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.7.0", | 4 | "version": "1.7.1", |
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 5026249..0a0d2f3 100644 --- a/recipes/office365-owa/webview.js +++ b/recipes/office365-owa/webview.js | |||
@@ -14,7 +14,9 @@ module.exports = (Ferdium, settings) => { | |||
14 | ); | 14 | ); |
15 | for (const child of allScreenReaders) { | 15 | for (const child of allScreenReaders) { |
16 | if (child.previousSibling) { | 16 | if (child.previousSibling) { |
17 | unreadCount += Ferdium.safeParseInt(child.previousSibling.textContent); | 17 | unreadCount += Ferdium.safeParseInt( |
18 | child.previousSibling.textContent, | ||
19 | ); | ||
18 | } | 20 | } |
19 | } | 21 | } |
20 | } | 22 | } |
@@ -27,7 +29,8 @@ module.exports = (Ferdium, settings) => { | |||
27 | if (/\/owa/.test(location.pathname)) { | 29 | if (/\/owa/.test(location.pathname)) { |
28 | // classic app | 30 | // classic app |
29 | directUnreadCount = Ferdium.safeParseInt( | 31 | directUnreadCount = Ferdium.safeParseInt( |
30 | document.querySelectorAll("span[title*='Inbox'] + div > span")[0]?.textContent | 32 | document.querySelectorAll("span[title*='Inbox'] + div > span")[0] |
33 | ?.textContent, | ||
31 | ); | 34 | ); |
32 | } else { | 35 | } else { |
33 | // new app | 36 | // new app |