From 728d339739b63e9bb59e457e4a84fe9a65b93fc9 Mon Sep 17 00:00:00 2001 From: vantezzen Date: Sat, 28 Sep 2019 12:10:25 +0200 Subject: Add uncompressed recipes --- uncompressed/kaizala/webview.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 uncompressed/kaizala/webview.js (limited to 'uncompressed/kaizala/webview.js') diff --git a/uncompressed/kaizala/webview.js b/uncompressed/kaizala/webview.js new file mode 100644 index 0000000..f77b276 --- /dev/null +++ b/uncompressed/kaizala/webview.js @@ -0,0 +1,10 @@ +"use strict"; + +module.exports = Franz => { + const getMessages = function getMessages() { + const count = document.querySelectorAll('.unseen-msg-count').length; + Franz.setBadge(count); + }; + + Franz.loop(getMessages); +}; \ No newline at end of file -- cgit v1.2.3-70-g09d2