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/webview.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'recipes/wechat/webview.js') 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