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/webview.js | |
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/webview.js')
-rw-r--r-- | recipes/office365-owa/webview.js | 7 |
1 files changed, 5 insertions, 2 deletions
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 |