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/jira/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/jira/webview.js')
-rw-r--r-- | recipes/jira/webview.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/recipes/jira/webview.js b/recipes/jira/webview.js index 246511e..9599b66 100644 --- a/recipes/jira/webview.js +++ b/recipes/jira/webview.js | |||
@@ -1,8 +1,10 @@ | |||
1 | module.exports = (Ferdi) => { | 1 | module.exports = Ferdi => { |
2 | const getMessages = () => { | 2 | const getMessages = () => { |
3 | // get unread messages | 3 | // get unread messages |
4 | const element = document.querySelector('#atlassian-navigation-notification-count span'); | 4 | const element = document.querySelector( |
5 | Ferdi.setBadge(element ? element.innerText : 0); | 5 | '#atlassian-navigation-notification-count span', |
6 | ); | ||
7 | Ferdi.setBadge(element ? element.textContent : 0); | ||
6 | }; | 8 | }; |
7 | 9 | ||
8 | Ferdi.loop(getMessages); | 10 | Ferdi.loop(getMessages); |