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/index.js | 4 ++-- recipes/office365-owa/package.json | 2 +- recipes/office365-owa/webview.js | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'recipes/office365-owa') 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 @@ -module.exports = Ferdi => class Outlook extends Ferdi { +module.exports = Ferdium => class Outlook extends Ferdium { overrideUserAgent() { - return window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim(); + return window.navigator.userAgent.replace(/(Ferdium|Electron)\/\S+ \([^)]+\)/g, '').trim(); } }; 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 @@ { "id": "office365-owa", "name": "Office 365 Outlook", - "version": "1.5.0", + "version": "1.6.0", "license": "MIT", "aliases": [ "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 @@ -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