diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2022-04-18 06:51:50 -0500 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2022-04-18 06:51:50 -0500 |
commit | 18801ed0c02627e87639dc0848cab44dacc18be2 (patch) | |
tree | 15e56ba66c68bf7b4594e6c9fdef44e037b4be31 /recipes/dingtalk/webview.js | |
parent | Remove deprecated webPreference flag (diff) | |
download | ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.gz ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.zst ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.zip |
Rebranded from 'ferdi' to 'ferdium' (companion changes for the main repo PR #2)
Diffstat (limited to 'recipes/dingtalk/webview.js')
-rw-r--r-- | recipes/dingtalk/webview.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/recipes/dingtalk/webview.js b/recipes/dingtalk/webview.js index 59881cf..621285c 100644 --- a/recipes/dingtalk/webview.js +++ b/recipes/dingtalk/webview.js | |||
@@ -4,7 +4,7 @@ function _interopRequireDefault(obj) { | |||
4 | return obj && obj.__esModule ? obj : { default: obj }; | 4 | return obj && obj.__esModule ? obj : { default: obj }; |
5 | } | 5 | } |
6 | 6 | ||
7 | module.exports = Ferdi => { | 7 | module.exports = Ferdium => { |
8 | let checkIsRun = false; | 8 | let checkIsRun = false; |
9 | const checkHeightAction = () => { | 9 | const checkHeightAction = () => { |
10 | checkIsRun = true; | 10 | checkIsRun = true; |
@@ -34,10 +34,10 @@ module.exports = Ferdi => { | |||
34 | 34 | ||
35 | const getMessages = () => { | 35 | const getMessages = () => { |
36 | const x = document.querySelectorAll('.unread-num em.ng-binding'); | 36 | const x = document.querySelectorAll('.unread-num em.ng-binding'); |
37 | Ferdi.setBadge(x.length > 0 ? x[0].textContent : 0); | 37 | Ferdium.setBadge(x.length > 0 ? x[0].textContent : 0); |
38 | }; | 38 | }; |
39 | 39 | ||
40 | Ferdi.loop(getMessages); | 40 | Ferdium.loop(getMessages); |
41 | 41 | ||
42 | Ferdi.injectCSS(_path.default.join(__dirname, 'style.css')); | 42 | Ferdium.injectCSS(_path.default.join(__dirname, 'style.css')); |
43 | }; | 43 | }; |