aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/jollor/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/jollor/webview.js')
-rw-r--r--recipes/jollor/webview.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/recipes/jollor/webview.js b/recipes/jollor/webview.js
new file mode 100644
index 0000000..6eb6b2a
--- /dev/null
+++ b/recipes/jollor/webview.js
@@ -0,0 +1,12 @@
1const path = require('path');
2
3module.exports = (Franz, options) => {
4 function getMessages() {
5 const count = document.querySelector(".user-menu-message-item-count").innerHTML;
6
7 Franz.setBadge(count);
8 }
9
10 Franz.injectCSS(path.join(__dirname, 'css', 'franz.css'));
11 Franz.loop(getMessages);
12};