diff options
author | 2021-09-19 07:26:25 +0530 | |
---|---|---|
committer | 2021-09-19 09:11:55 +0530 | |
commit | 7517a409a1a502c747eb4598492a88cec4e8d58c (patch) | |
tree | 7b6b603b0831845ac07fe6ab8e4c52bf19c8e850 /recipes/dingtalk/webview.js | |
parent | Merge pull request #713 from kris7t/fix-api-access (diff) | |
download | ferdium-recipes-7517a409a1a502c747eb4598492a88cec4e8d58c.tar.gz ferdium-recipes-7517a409a1a502c747eb4598492a88cec4e8d58c.tar.zst ferdium-recipes-7517a409a1a502c747eb4598492a88cec4e8d58c.zip |
fix: fix js error; styling
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 | }; |