From 18801ed0c02627e87639dc0848cab44dacc18be2 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Mon, 18 Apr 2022 06:51:50 -0500 Subject: Rebranded from 'ferdi' to 'ferdium' (companion changes for the main repo PR #2) --- recipes/office365-owa/webview.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'recipes/office365-owa/webview.js') 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 @@ -module.exports = (Ferdi, settings) => { +module.exports = (Ferdium, settings) => { const collectCounts = selector => { let unreadCount = 0; const foldersElement = document.querySelector(selector); @@ -8,7 +8,7 @@ module.exports = (Ferdi, settings) => { ); for (const child of allScreenReaders) { if (child.previousSibling) { - unreadCount += Ferdi.safeParseInt(child.previousSibling.textContent); + unreadCount += Ferdium.safeParseInt(child.previousSibling.textContent); } } } @@ -21,7 +21,7 @@ module.exports = (Ferdi, settings) => { if (/\/owa/.test(location.pathname)) { // classic app - directUnreadCount = Ferdi.safeParseInt( + directUnreadCount = Ferdium.safeParseInt( document.querySelectorAll("span[title*='Inbox'] + div > span")[0] .textContent, ); @@ -35,8 +35,8 @@ module.exports = (Ferdi, settings) => { indirectUnreadCount = collectCounts('div[role=tree]:nth-child(4)'); // groups } - Ferdi.setBadge(directUnreadCount, indirectUnreadCount); + Ferdium.setBadge(directUnreadCount, indirectUnreadCount); }; - Ferdi.loop(getMessages); + Ferdium.loop(getMessages); }; -- cgit v1.2.3-70-g09d2