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/threema/index.js | 2 +- recipes/threema/package.json | 2 +- recipes/threema/webview.js | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'recipes/threema') diff --git a/recipes/threema/index.js b/recipes/threema/index.js index 23607bd..dd41f72 100644 --- a/recipes/threema/index.js +++ b/recipes/threema/index.js @@ -1 +1 @@ -module.exports = Ferdi => Ferdi; +module.exports = Ferdium => Ferdium; diff --git a/recipes/threema/package.json b/recipes/threema/package.json index f0a774d..5424f60 100644 --- a/recipes/threema/package.json +++ b/recipes/threema/package.json @@ -1,7 +1,7 @@ { "id": "threema", "name": "Threema", - "version": "1.1.2", + "version": "1.2.0", "license": "MIT", "repository": "https://github.com/Arany/franz-recipe-threema", "config": { diff --git a/recipes/threema/webview.js b/recipes/threema/webview.js index cf7d1e1..16eb20a 100644 --- a/recipes/threema/webview.js +++ b/recipes/threema/webview.js @@ -4,7 +4,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -module.exports = Ferdi => { +module.exports = Ferdium => { const getMessages = () => { const elements = document.querySelectorAll( '.badge.unread-count:not(.ng-hide)', @@ -13,17 +13,17 @@ module.exports = Ferdi => { for (const element of elements) { try { - count += Ferdi.safeParseInt(element.textContent); + count += Ferdium.safeParseInt(element.textContent); } catch (error) { console.error(error); } } - // 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