aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/lark/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/lark/webview.js')
-rw-r--r--recipes/lark/webview.js10
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
7module.exports = Ferdi => { 7module.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};