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