aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/jollor
diff options
context:
space:
mode:
authorLibravatar Markus Hatvan <markus_hatvan@aon.at>2021-10-05 17:04:09 +0200
committerLibravatar GitHub <noreply@github.com>2021-10-05 17:04:09 +0200
commitd3841b766f9d37d557646003899f67525c5f755f (patch)
tree1bcab990c94f2b05678b7a83ffebe08298500f0b /recipes/jollor
parentchore: repo maintenance (#732) (diff)
downloadferdium-recipes-d3841b766f9d37d557646003899f67525c5f755f.tar.gz
ferdium-recipes-d3841b766f9d37d557646003899f67525c5f755f.tar.zst
ferdium-recipes-d3841b766f9d37d557646003899f67525c5f755f.zip
chore: add eslint-plugin-unicorn (#733)
Diffstat (limited to 'recipes/jollor')
-rw-r--r--recipes/jollor/webview.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/recipes/jollor/webview.js b/recipes/jollor/webview.js
index 695a7fa..693e454 100644
--- a/recipes/jollor/webview.js
+++ b/recipes/jollor/webview.js
@@ -1,12 +1,16 @@
1const _path = _interopRequireDefault(require('path')); 1const _path = _interopRequireDefault(require('path'));
2 2
3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 3function _interopRequireDefault(obj) {
4 return obj && obj.__esModule ? obj : { default: obj };
5}
4 6
5module.exports = (Ferdi) => { 7module.exports = Ferdi => {
6 const getMessages = () => { 8 const getMessages = () => {
7 const count = document.querySelector('.user-menu-message-item-count').innerHTML; 9 const count = document.querySelector(
10 '.user-menu-message-item-count',
11 ).textContent;
8 Ferdi.setBadge(count); 12 Ferdi.setBadge(count);
9 } 13 };
10 14
11 Ferdi.loop(getMessages); 15 Ferdi.loop(getMessages);
12 16