aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/hipchat/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/hipchat/webview.js')
-rw-r--r--recipes/hipchat/webview.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/recipes/hipchat/webview.js b/recipes/hipchat/webview.js
index 8748926..229b376 100644
--- a/recipes/hipchat/webview.js
+++ b/recipes/hipchat/webview.js
@@ -1,11 +1,11 @@
1module.exports = Ferdi => { 1module.exports = Ferdium => {
2 const getMessages = () => { 2 const getMessages = () => {
3 const directMessages = document.querySelectorAll('.hc-mention').length; 3 const directMessages = document.querySelectorAll('.hc-mention').length;
4 const allMessages = document.querySelectorAll('.aui-badge:not(.hc-mention)').length - directMessages; 4 const allMessages = document.querySelectorAll('.aui-badge:not(.hc-mention)').length - directMessages;
5 5
6 // set Ferdi badge 6 // set Ferdium badge
7 Ferdi.setBadge(directMessages, allMessages); 7 Ferdium.setBadge(directMessages, allMessages);
8 }; 8 };
9 9
10 Ferdi.loop(getMessages); 10 Ferdium.loop(getMessages);
11}; 11};