aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/wechat/webview.js
diff options
context:
space:
mode:
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};