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