From 7517a409a1a502c747eb4598492a88cec4e8d58c Mon Sep 17 00:00:00 2001 From: Vijay A Date: Sun, 19 Sep 2021 07:26:25 +0530 Subject: fix: fix js error; styling --- recipes/dingtalk/package.json | 2 +- recipes/dingtalk/webview.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'recipes/dingtalk') 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 @@ { "id": "dingtalk", "name": "Dingtalk", - "version": "1.0.24", + "version": "1.0.25", "license": "MIT", "config": { "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 module.exports = (Ferdi) => { let checkIsRun = false; - checkHeightAction = () => { + const checkHeightAction = () => { checkIsRun = true; let checkHeight = setInterval(() => { let menuPanel = document.getElementById('menu-pannel') @@ -25,7 +25,7 @@ module.exports = (Ferdi) => { } }); - const getMessages = function getMessages() { + const getMessages = () => { const x = document.querySelectorAll('.unread-num em.ng-binding') Ferdi.setBadge(x.length > 0 ? x[0].innerHTML : 0); }; -- cgit v1.2.3-70-g09d2