aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/wechat/webview.js
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2022-04-18 06:51:50 -0500
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2022-04-18 06:51:50 -0500
commit18801ed0c02627e87639dc0848cab44dacc18be2 (patch)
tree15e56ba66c68bf7b4594e6c9fdef44e037b4be31 /recipes/wechat/webview.js
parentRemove deprecated webPreference flag (diff)
downloadferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.gz
ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.zst
ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.zip
Rebranded from 'ferdi' to 'ferdium' (companion changes for the main repo PR #2)
Diffstat (limited to 'recipes/wechat/webview.js')
-rw-r--r--recipes/wechat/webview.js10
1 files changed, 5 insertions, 5 deletions
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) {
4 return obj && obj.__esModule ? obj : { default: obj }; 4 return obj && obj.__esModule ? obj : { default: obj };
5} 5}
6 6
7module.exports = Ferdi => { 7module.exports = Ferdium => {
8 const getMessages = () => { 8 const getMessages = () => {
9 let directCount = 0; 9 let directCount = 0;
10 let indirectCount = 0; 10 let indirectCount = 0;
@@ -16,7 +16,7 @@ module.exports = Ferdi => {
16 const avatarImage = item.querySelector('img.img'); 16 const avatarImage = item.querySelector('img.img');
17 17
18 if (reddot) { 18 if (reddot) {
19 count = Ferdi.safeParseInt(reddot.textContent); 19 count = Ferdium.safeParseInt(reddot.textContent);
20 } 20 }
21 21
22 if ( 22 if (
@@ -29,10 +29,10 @@ module.exports = Ferdi => {
29 } 29 }
30 }); 30 });
31 31
32 Ferdi.setBadge(directCount, indirectCount); 32 Ferdium.setBadge(directCount, indirectCount);
33 }; 33 };
34 34
35 Ferdi.loop(getMessages); 35 Ferdium.loop(getMessages);
36 36
37 Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); 37 Ferdium.injectCSS(_path.default.join(__dirname, 'service.css'));
38}; 38};