diff options
author | 2020-09-22 20:56:48 +0200 | |
---|---|---|
committer | 2020-09-22 19:56:48 +0100 | |
commit | 6f5e4a00588aefdda7a5a1cfe70935870e7e234a (patch) | |
tree | 9e29aa7aa0620a1a4a968ff8739b4b8ba96791a9 /recipes/flowdock/webview.js | |
parent | Updated logos for Outlook/OWA (diff) | |
download | ferdium-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 'recipes/flowdock/webview.js')
-rw-r--r-- | recipes/flowdock/webview.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/recipes/flowdock/webview.js b/recipes/flowdock/webview.js new file mode 100644 index 0000000..8434483 --- /dev/null +++ b/recipes/flowdock/webview.js | |||
@@ -0,0 +1,14 @@ | |||
1 | 'use strict'; | ||
2 | |||
3 | module.exports = Franz => { | ||
4 | const getMessages = function getMessages() { | ||
5 | const directMessages = document.querySelectorAll('.activity-indicator-mentions').length; | ||
6 | const indirectMessages = document.querySelectorAll('.activity-indicator-chat').length; | ||
7 | |||
8 | // set Franz badge | ||
9 | Franz.setBadge(directMessages, indirectMessages); | ||
10 | }; | ||
11 | |||
12 | Franz.loop(getMessages); | ||
13 | }; | ||
14 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZsb3dkb2NrL3dlYnZpZXcuanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56IiwiZ2V0TWVzc2FnZXMiLCJkaXJlY3RNZXNzYWdlcyIsImRvY3VtZW50IiwicXVlcnlTZWxlY3RvckFsbCIsImxlbmd0aCIsImluZGlyZWN0TWVzc2FnZXMiLCJzZXRCYWRnZSIsImxvb3AiXS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