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/lark/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/lark/webview.js')
-rw-r--r-- | recipes/lark/webview.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/recipes/lark/webview.js b/recipes/lark/webview.js index dfccccf..6dd561b 100644 --- a/recipes/lark/webview.js +++ b/recipes/lark/webview.js | |||
@@ -4,19 +4,19 @@ 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 | const getMessages = () => { | 8 | const getMessages = () => { |
9 | const ele = document.querySelectorAll( | 9 | const ele = document.querySelectorAll( |
10 | '.larkc-badge-count.navbarMenu-badge', | 10 | '.larkc-badge-count.navbarMenu-badge', |
11 | ); | 11 | ); |
12 | if (ele.length === 0) { | 12 | if (ele.length === 0) { |
13 | Ferdi.setBadge(0); | 13 | Ferdium.setBadge(0); |
14 | return; | 14 | return; |
15 | } | 15 | } |
16 | Ferdi.setBadge(ele[0].textContent); | 16 | Ferdium.setBadge(ele[0].textContent); |
17 | }; | 17 | }; |
18 | 18 | ||
19 | Ferdi.loop(getMessages); | 19 | Ferdium.loop(getMessages); |
20 | 20 | ||
21 | Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); | 21 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); |
22 | }; | 22 | }; |