diff options
Diffstat (limited to 'recipes/jollor/webview.js')
-rw-r--r-- | recipes/jollor/webview.js | 12 |
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 @@ | |||
1 | const path = require('path'); | ||
2 | |||
3 | module.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 | }; | ||