diff options
Diffstat (limited to 'recipes/dingtalk/webview.js')
-rw-r--r-- | recipes/dingtalk/webview.js | 4 |
1 files changed, 2 insertions, 2 deletions
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 | }; |