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/gmail/index.js | 2 +- recipes/gmail/package.json | 2 +- recipes/gmail/webview.js | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'recipes/gmail') diff --git a/recipes/gmail/index.js b/recipes/gmail/index.js index fe5d29b..dd41f72 100644 --- a/recipes/gmail/index.js +++ b/recipes/gmail/index.js @@ -1 +1 @@ -module.exports = Ferdi => class Gmail extends Ferdi {}; +module.exports = Ferdium => Ferdium; diff --git a/recipes/gmail/package.json b/recipes/gmail/package.json index 9e9218f..dfbb834 100644 --- a/recipes/gmail/package.json +++ b/recipes/gmail/package.json @@ -1,7 +1,7 @@ { "id": "gmail", "name": "Gmail", - "version": "1.4.3", + "version": "1.5.0", "license": "MIT", "config": { "serviceURL": "https://mail.google.com" diff --git a/recipes/gmail/webview.js b/recipes/gmail/webview.js index f7fba84..be22b66 100644 --- a/recipes/gmail/webview.js +++ b/recipes/gmail/webview.js @@ -4,7 +4,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -module.exports = Ferdi => { +module.exports = Ferdium => { // if the user is on gmail's landing page, go to the login page. if ( location.hostname == 'www.google.com' && @@ -25,17 +25,17 @@ module.exports = Ferdi => { if (parentNodeOfParentNode) { const unreadCounts = parentNodeOfParentNode.querySelectorAll('.bsU'); if (unreadCounts.length > 0) { - count = Ferdi.safeParseInt(unreadCounts[0].textContent.replace(/[^\p{N}]/gu, '')); + count = Ferdium.safeParseInt(unreadCounts[0].textContent.replace(/[^\p{N}]/gu, '')); } } } } - // set Ferdi badge - Ferdi.setBadge(count); + // set Ferdium badge + Ferdium.setBadge(count); }; - Ferdi.loop(getMessages); + Ferdium.loop(getMessages); - Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); + Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); }; -- cgit v1.2.3-54-g00ecf