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, 3 insertions, 5 deletions
diff --git a/recipes/jira/webview.js b/recipes/jira/webview.js
index aca65be..f52235d 100644
--- a/recipes/jira/webview.js
+++ b/recipes/jira/webview.js
@@ -1,14 +1,12 @@
1module.exports = (Franz) => { 1module.exports = (Ferdi) => {
2 const getMessages = function getMessages() { 2 const getMessages = function getMessages() {
3 // get unread messages 3 // get unread messages
4 const element = document.querySelector('#atlassian-navigation-notification-count span'); 4 const element = document.querySelector('#atlassian-navigation-notification-count span');
5 let count = element ? element.innerText : 0; 5 let count = element ? element.innerText : 0;
6 count = parseInt(count, 10); 6 count = parseInt(count, 10);
7 7
8 // set Franz badge 8 Ferdi.setBadge(count);
9 Franz.setBadge(count);
10 }; 9 };
11 10
12 // check for new messages every second and update Franz badge 11 Ferdi.loop(getMessages);
13 Franz.loop(getMessages);
14}; 12};