From f9e2d9926e4dff14df0f13858a9c695e2118a94e Mon Sep 17 00:00:00 2001 From: Vijay Aravamudhan Date: Wed, 26 Jul 2023 16:35:49 +0000 Subject: 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 --- recipes/office365-owa/webview.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'recipes/office365-owa/webview.js') 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) => { ); for (const child of allScreenReaders) { if (child.previousSibling) { - unreadCount += Ferdium.safeParseInt(child.previousSibling.textContent); + unreadCount += Ferdium.safeParseInt( + child.previousSibling.textContent, + ); } } } @@ -27,7 +29,8 @@ module.exports = (Ferdium, settings) => { if (/\/owa/.test(location.pathname)) { // classic app directUnreadCount = Ferdium.safeParseInt( - document.querySelectorAll("span[title*='Inbox'] + div > span")[0]?.textContent + document.querySelectorAll("span[title*='Inbox'] + div > span")[0] + ?.textContent, ); } else { // new app -- cgit v1.2.3-70-g09d2