diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2022-04-18 06:51:50 -0500 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2022-04-18 06:51:50 -0500 |
commit | 18801ed0c02627e87639dc0848cab44dacc18be2 (patch) | |
tree | 15e56ba66c68bf7b4594e6c9fdef44e037b4be31 /recipes/wechat | |
parent | Remove deprecated webPreference flag (diff) | |
download | ferdium-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')
-rw-r--r-- | recipes/wechat/index.js | 2 | ||||
-rw-r--r-- | recipes/wechat/package.json | 2 | ||||
-rw-r--r-- | recipes/wechat/webview.js | 10 |
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 | ||
7 | module.exports = Ferdi => { | 7 | module.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 | }; |