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/campuswire/webview.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'recipes/campuswire/webview.js') diff --git a/recipes/campuswire/webview.js b/recipes/campuswire/webview.js index 418ac9d..d77d162 100644 --- a/recipes/campuswire/webview.js +++ b/recipes/campuswire/webview.js @@ -1,4 +1,4 @@ -module.exports = Ferdi => { +module.exports = Ferdium => { const getMessages = () => { let count = document.querySelectorAll( '._5fx8:not(._569x),._1ht3:not(._569x)', @@ -6,13 +6,13 @@ module.exports = Ferdi => { const messageRequestsElement = document.querySelector('._5nxf'); if (messageRequestsElement) { - count += Ferdi.safeParseInt(messageRequestsElement.textContent); + count += Ferdium.safeParseInt(messageRequestsElement.textContent); } - Ferdi.setBadge(count); + Ferdium.setBadge(count); }; - Ferdi.loop(getMessages); + Ferdium.loop(getMessages); localStorage.setItem( '_cs_desktopNotifsEnabled', @@ -22,8 +22,8 @@ module.exports = Ferdi => { }), ); - if (typeof Ferdi.onNotify === 'function') { - Ferdi.onNotify(notification => { + if (typeof Ferdium.onNotify === 'function') { + Ferdium.onNotify(notification => { if (typeof notification.title !== 'string') { notification.title = ((notification.title.props || {}).content || [])[0] || 'Campuswire'; -- cgit v1.2.3-70-g09d2