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/wechat/index.js | 2 +- recipes/wechat/package.json | 2 +- recipes/wechat/webview.js | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'recipes/wechat') diff --git a/recipes/wechat/index.js b/recipes/wechat/index.js index 23607bd..dd41f72 100644 --- a/recipes/wechat/index.js +++ b/recipes/wechat/index.js @@ -1 +1 @@ -module.exports = Ferdi => Ferdi; +module.exports = Ferdium => Ferdium; diff --git a/recipes/wechat/package.json b/recipes/wechat/package.json index 8024008..cdc76b9 100644 --- a/recipes/wechat/package.json +++ b/recipes/wechat/package.json @@ -1,7 +1,7 @@ { "id": "wechat", "name": "WeChat", - "version": "1.1.2", + "version": "1.2.0", "license": "MIT", "repository": "https://github.com/koma-private/recipe-wechat", "config": { diff --git a/recipes/wechat/webview.js b/recipes/wechat/webview.js index e7de1f1..033faae 100644 --- a/recipes/wechat/webview.js +++ b/recipes/wechat/webview.js @@ -4,7 +4,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -module.exports = Ferdi => { +module.exports = Ferdium => { const getMessages = () => { let directCount = 0; let indirectCount = 0; @@ -16,7 +16,7 @@ module.exports = Ferdi => { const avatarImage = item.querySelector('img.img'); if (reddot) { - count = Ferdi.safeParseInt(reddot.textContent); + count = Ferdium.safeParseInt(reddot.textContent); } if ( @@ -29,10 +29,10 @@ module.exports = Ferdi => { } }); - Ferdi.setBadge(directCount, indirectCount); + Ferdium.setBadge(directCount, indirectCount); }; - 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