diff options
author | Markus Hatvan <markus_hatvan@aon.at> | 2021-10-05 17:04:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-05 17:04:09 +0200 |
commit | d3841b766f9d37d557646003899f67525c5f755f (patch) | |
tree | 1bcab990c94f2b05678b7a83ffebe08298500f0b /recipes/podio/webview.js | |
parent | chore: repo maintenance (#732) (diff) | |
download | ferdium-recipes-d3841b766f9d37d557646003899f67525c5f755f.tar.gz ferdium-recipes-d3841b766f9d37d557646003899f67525c5f755f.tar.zst ferdium-recipes-d3841b766f9d37d557646003899f67525c5f755f.zip |
chore: add eslint-plugin-unicorn (#733)
Diffstat (limited to 'recipes/podio/webview.js')
-rw-r--r-- | recipes/podio/webview.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/recipes/podio/webview.js b/recipes/podio/webview.js index 1bfa60d..0a0c31e 100644 --- a/recipes/podio/webview.js +++ b/recipes/podio/webview.js | |||
@@ -1,10 +1,12 @@ | |||
1 | const _path = _interopRequireDefault(require('path')); | 1 | const _path = _interopRequireDefault(require('path')); |
2 | 2 | ||
3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | 3 | function _interopRequireDefault(obj) { |
4 | return obj && obj.__esModule ? obj : { default: obj }; | ||
5 | } | ||
4 | 6 | ||
5 | module.exports = (Ferdi) => { | 7 | module.exports = Ferdi => { |
6 | const getMessages = () => { | 8 | const getMessages = () => { |
7 | const updates = document.getElementsByClassName('counter')[0].innerHTML; | 9 | const updates = document.querySelectorAll('.counter')[0].textContent; |
8 | Ferdi.setBadge(updates, 0); | 10 | Ferdi.setBadge(updates, 0); |
9 | }; | 11 | }; |
10 | 12 | ||