aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/dingtalk
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-09-19 07:26:25 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-09-19 09:11:55 +0530
commit7517a409a1a502c747eb4598492a88cec4e8d58c (patch)
tree7b6b603b0831845ac07fe6ab8e4c52bf19c8e850 /recipes/dingtalk
parentMerge pull request #713 from kris7t/fix-api-access (diff)
downloadferdium-recipes-7517a409a1a502c747eb4598492a88cec4e8d58c.tar.gz
ferdium-recipes-7517a409a1a502c747eb4598492a88cec4e8d58c.tar.zst
ferdium-recipes-7517a409a1a502c747eb4598492a88cec4e8d58c.zip
fix: fix js error; styling
Diffstat (limited to 'recipes/dingtalk')
-rw-r--r--recipes/dingtalk/package.json2
-rw-r--r--recipes/dingtalk/webview.js4
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
5module.exports = (Ferdi) => { 5module.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 };