diff options
Diffstat (limited to 'recipes/teamleader')
-rw-r--r-- | recipes/teamleader/webview.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/recipes/teamleader/webview.js b/recipes/teamleader/webview.js index 303a938..2de8e1c 100644 --- a/recipes/teamleader/webview.js +++ b/recipes/teamleader/webview.js | |||
@@ -1,13 +1,13 @@ | |||
1 | const path = require('path'); | 1 | const path = require('path'); |
2 | 2 | ||
3 | module.exports = (Franz, options) => { | 3 | module.exports = (Franz, options) => { |
4 | const getMessages = () => { | 4 | const getMessages = () => { |
5 | const unreadNotifications = parseInt(document.getElementById('notifications_amount').innerHTML); | 5 | const unreadNotifications = parseInt(document.getElementById('notifications_amount').innerHTML); |
6 | 6 | ||
7 | Franz.setBadge(unreadNotifications); | 7 | Franz.setBadge(unreadNotifications); |
8 | } | 8 | }; |
9 | 9 | ||
10 | Franz.loop(getMessages); | 10 | Franz.loop(getMessages); |
11 | 11 | ||
12 | Franz.injectCSS(path.join(__dirname, 'css', 'franz.css')); | 12 | Franz.injectCSS(path.join(__dirname, 'css', 'franz.css')); |
13 | }; \ No newline at end of file | 13 | }; |