diff options
Diffstat (limited to 'recipes/lark')
-rw-r--r-- | recipes/lark/index.js | 2 | ||||
-rw-r--r-- | recipes/lark/package.json | 2 | ||||
-rw-r--r-- | recipes/lark/webview.js | 10 |
3 files changed, 7 insertions, 7 deletions
diff --git a/recipes/lark/index.js b/recipes/lark/index.js index 23607bd..dd41f72 100644 --- a/recipes/lark/index.js +++ b/recipes/lark/index.js | |||
@@ -1 +1 @@ | |||
module.exports = Ferdi => Ferdi; | module.exports = Ferdium => Ferdium; | ||
diff --git a/recipes/lark/package.json b/recipes/lark/package.json index eaba10e..d92f6c0 100644 --- a/recipes/lark/package.json +++ b/recipes/lark/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "lark", | 2 | "id": "lark", |
3 | "name": "Lark", | 3 | "name": "Lark", |
4 | "version": "0.1.2", | 4 | "version": "0.2.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://{teamId}.larksuite.com/messenger/", | 7 | "serviceURL": "https://{teamId}.larksuite.com/messenger/", |
diff --git a/recipes/lark/webview.js b/recipes/lark/webview.js index dfccccf..6dd561b 100644 --- a/recipes/lark/webview.js +++ b/recipes/lark/webview.js | |||
@@ -4,19 +4,19 @@ 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 | const ele = document.querySelectorAll( | 9 | const ele = document.querySelectorAll( |
10 | '.larkc-badge-count.navbarMenu-badge', | 10 | '.larkc-badge-count.navbarMenu-badge', |
11 | ); | 11 | ); |
12 | if (ele.length === 0) { | 12 | if (ele.length === 0) { |
13 | Ferdi.setBadge(0); | 13 | Ferdium.setBadge(0); |
14 | return; | 14 | return; |
15 | } | 15 | } |
16 | Ferdi.setBadge(ele[0].textContent); | 16 | Ferdium.setBadge(ele[0].textContent); |
17 | }; | 17 | }; |
18 | 18 | ||
19 | Ferdi.loop(getMessages); | 19 | Ferdium.loop(getMessages); |
20 | 20 | ||
21 | Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); | 21 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); |
22 | }; | 22 | }; |