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.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/recipes/jira/webview.js b/recipes/jira/webview.js
index 42d32e8..aca65be 100644
--- a/recipes/jira/webview.js
+++ b/recipes/jira/webview.js
@@ -1,9 +1,7 @@
1"use strict";
2
3module.exports = (Franz) => { 1module.exports = (Franz) => {
4 const getMessages = function getMessages() { 2 const getMessages = function getMessages() {
5 // get unread messages 3 // get unread messages
6 let element = document.querySelector('#atlassian-navigation-notification-count span'); 4 const element = document.querySelector('#atlassian-navigation-notification-count span');
7 let count = element ? element.innerText : 0; 5 let count = element ? element.innerText : 0;
8 count = parseInt(count, 10); 6 count = parseInt(count, 10);
9 7
@@ -13,4 +11,4 @@ module.exports = (Franz) => {
13 11
14 // check for new messages every second and update Franz badge 12 // check for new messages every second and update Franz badge
15 Franz.loop(getMessages); 13 Franz.loop(getMessages);
16}; \ No newline at end of file 14};