diff options
Diffstat (limited to 'recipes/dingtalk')
-rw-r--r-- | recipes/dingtalk/package.json | 2 | ||||
-rw-r--r-- | recipes/dingtalk/webview.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/recipes/dingtalk/package.json b/recipes/dingtalk/package.json index 2cf0474..4a20a26 100644 --- a/recipes/dingtalk/package.json +++ b/recipes/dingtalk/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "dingtalk", | 2 | "id": "dingtalk", |
3 | "name": "Dingtalk", | 3 | "name": "Dingtalk", |
4 | "version": "1.0.24", | 4 | "version": "1.0.25", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://im.dingtalk.com/", | 7 | "serviceURL": "https://im.dingtalk.com/", |
diff --git a/recipes/dingtalk/webview.js b/recipes/dingtalk/webview.js index 68de1b6..aa5f2a3 100644 --- a/recipes/dingtalk/webview.js +++ b/recipes/dingtalk/webview.js | |||
@@ -4,7 +4,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de | |||
4 | 4 | ||
5 | module.exports = (Ferdi) => { | 5 | module.exports = (Ferdi) => { |
6 | let checkIsRun = false; | 6 | let checkIsRun = false; |
7 | checkHeightAction = () => { | 7 | const checkHeightAction = () => { |
8 | checkIsRun = true; | 8 | checkIsRun = true; |
9 | let checkHeight = setInterval(() => { | 9 | let checkHeight = setInterval(() => { |
10 | let menuPanel = document.getElementById('menu-pannel') | 10 | let menuPanel = document.getElementById('menu-pannel') |
@@ -25,7 +25,7 @@ module.exports = (Ferdi) => { | |||
25 | } | 25 | } |
26 | }); | 26 | }); |
27 | 27 | ||
28 | const getMessages = function getMessages() { | 28 | const getMessages = () => { |
29 | const x = document.querySelectorAll('.unread-num em.ng-binding') | 29 | const x = document.querySelectorAll('.unread-num em.ng-binding') |
30 | Ferdi.setBadge(x.length > 0 ? x[0].innerHTML : 0); | 30 | Ferdi.setBadge(x.length > 0 ? x[0].innerHTML : 0); |
31 | }; | 31 | }; |