aboutsummaryrefslogtreecommitdiffstats
path: root/uncompressed/hackmd/webview.js
diff options
context:
space:
mode:
authorLibravatar Bennett <hello@vantezzen.io>2020-09-22 20:56:48 +0200
committerLibravatar GitHub <noreply@github.com>2020-09-22 19:56:48 +0100
commit6f5e4a00588aefdda7a5a1cfe70935870e7e234a (patch)
tree9e29aa7aa0620a1a4a968ff8739b4b8ba96791a9 /uncompressed/hackmd/webview.js
parentUpdated logos for Outlook/OWA (diff)
downloadferdium-recipes-6f5e4a00588aefdda7a5a1cfe70935870e7e234a.tar.gz
ferdium-recipes-6f5e4a00588aefdda7a5a1cfe70935870e7e234a.tar.zst
ferdium-recipes-6f5e4a00588aefdda7a5a1cfe70935870e7e234a.zip
Unpack recipes and update recipes icons (#292)
Co-authored-by: Amine Mouafik <amine@mouafik.fr>
Diffstat (limited to 'uncompressed/hackmd/webview.js')
-rw-r--r--uncompressed/hackmd/webview.js17
1 files changed, 0 insertions, 17 deletions
diff --git a/uncompressed/hackmd/webview.js b/uncompressed/hackmd/webview.js
deleted file mode 100644
index 1977953..0000000
--- a/uncompressed/hackmd/webview.js
+++ /dev/null
@@ -1,17 +0,0 @@
1const path = require("path");
2
3module.exports = (Franz) => {
4 const getMessages = function getMessages() {
5 // get unread messages
6 const count = document.querySelectorAll('.guilds-wrapper .badge').length;
7
8 // set Franz badge
9 Franz.setBadge(count);
10 };
11
12 // check for new messages every second and update Franz badge
13 Franz.loop(getMessages);
14
15 // Hide download message
16 Franz.injectCSS(path.join(__dirname, 'service.css'));
17};