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/feedly/index.js | 2 +- recipes/feedly/package.json | 2 +- recipes/feedly/webview.js | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'recipes/feedly') diff --git a/recipes/feedly/index.js b/recipes/feedly/index.js index 23607bd..dd41f72 100644 --- a/recipes/feedly/index.js +++ b/recipes/feedly/index.js @@ -1 +1 @@ -module.exports = Ferdi => Ferdi; +module.exports = Ferdium => Ferdium; diff --git a/recipes/feedly/package.json b/recipes/feedly/package.json index c1fa2ed..3e9a2bf 100644 --- a/recipes/feedly/package.json +++ b/recipes/feedly/package.json @@ -1,7 +1,7 @@ { "id": "feedly", "name": "Feedly", - "version": "1.1.3", + "version": "1.2.0", "license": "MIT", "config": { "serviceURL": "https://feedly.com" diff --git a/recipes/feedly/webview.js b/recipes/feedly/webview.js index c1108ff..b4887bc 100644 --- a/recipes/feedly/webview.js +++ b/recipes/feedly/webview.js @@ -1,4 +1,4 @@ -module.exports = Ferdi => { +module.exports = Ferdium => { const getMessages = () => { const newsDOM = document.querySelectorAll( "div[title='All'] > .LeftnavListRow__count", @@ -9,11 +9,11 @@ module.exports = Ferdi => { if (newsDOM && newsDOM.length > 0) { const textContent = newsDOM[0].textContent; - counter = textContent.includes('K') || textContent.includes('+') ? `${textContent.slice(0, Math.max(0, textContent.indexOf('K')))}000` : Ferdi.safeParseInt(textContent); + counter = textContent.includes('K') || textContent.includes('+') ? `${textContent.slice(0, Math.max(0, textContent.indexOf('K')))}000` : Ferdium.safeParseInt(textContent); } - Ferdi.setBadge(counter); + Ferdium.setBadge(counter); }; - Ferdi.loop(getMessages); + Ferdium.loop(getMessages); }; -- cgit v1.2.3-54-g00ecf