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/good-reads/index.js | 2 +- recipes/good-reads/package.json | 2 +- recipes/good-reads/webview.js | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'recipes/good-reads') diff --git a/recipes/good-reads/index.js b/recipes/good-reads/index.js index 419c60d..dd41f72 100644 --- a/recipes/good-reads/index.js +++ b/recipes/good-reads/index.js @@ -1 +1 @@ -module.exports = (Ferdi) => class GoodReads extends Ferdi {}; +module.exports = Ferdium => Ferdium; diff --git a/recipes/good-reads/package.json b/recipes/good-reads/package.json index d581b4f..8337a6d 100644 --- a/recipes/good-reads/package.json +++ b/recipes/good-reads/package.json @@ -1,7 +1,7 @@ { "id": "good-reads", "name": "Good Reads", - "version": "1.0.2", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://www.goodreads.com/" diff --git a/recipes/good-reads/webview.js b/recipes/good-reads/webview.js index c1eabf8..a178ae1 100644 --- a/recipes/good-reads/webview.js +++ b/recipes/good-reads/webview.js @@ -1,13 +1,13 @@ -module.exports = (Ferdi) => { +module.exports = (Ferdium) => { const getMessages = () => { const notificationBadge = document.querySelector( ".siteHeader__topLevelItem--profileIcon .headerPersonalNav .modalTrigger .headerPersonalNav__icon .headerPersonalNav__flag" ); let notification = notificationBadge - ? Ferdi.safeParseInt(notificationBadge.textContent) + ? Ferdium.safeParseInt(notificationBadge.textContent) : 0; - Ferdi.setBadge(notification); + Ferdium.setBadge(notification); }; - Ferdi.loop(getMessages); + Ferdium.loop(getMessages); }; -- cgit v1.2.3-54-g00ecf