aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/wechat
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/wechat')
-rw-r--r--recipes/wechat/index.js2
-rw-r--r--recipes/wechat/package.json2
-rw-r--r--recipes/wechat/webview.js10
3 files changed, 7 insertions, 7 deletions
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 @@
1{ 1{
2 "id": "wechat", 2 "id": "wechat",
3 "name": "WeChat", 3 "name": "WeChat",
4 "version": "1.1.2", 4 "version": "1.2.0",
5 "license": "MIT", 5 "license": "MIT",
6 "repository": "https://github.com/koma-private/recipe-wechat", 6 "repository": "https://github.com/koma-private/recipe-wechat",
7 "config": { 7 "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) {
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};