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/index.js | 2 +- recipes/campuswire/package.json | 2 +- recipes/campuswire/webview.js | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'recipes/campuswire') diff --git a/recipes/campuswire/index.js b/recipes/campuswire/index.js index 23607bd..dd41f72 100644 --- a/recipes/campuswire/index.js +++ b/recipes/campuswire/index.js @@ -1 +1 @@ -module.exports = Ferdi => Ferdi; +module.exports = Ferdium => Ferdium; diff --git a/recipes/campuswire/package.json b/recipes/campuswire/package.json index ede4dfb..e71eaeb 100644 --- a/recipes/campuswire/package.json +++ b/recipes/campuswire/package.json @@ -1,7 +1,7 @@ { "id": "campuswire", "name": "Campuswire", - "version": "1.1.2", + "version": "1.2.0", "license": "MIT", "config": { "serviceURL": "https://campuswire.com/c", 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-54-g00ecf