diff options
author | 2019-09-28 12:10:25 +0200 | |
---|---|---|
committer | 2019-09-28 12:10:25 +0200 | |
commit | 728d339739b63e9bb59e457e4a84fe9a65b93fc9 (patch) | |
tree | a0fc6180ea26fa9ef397458e8eb6491031d6437d /uncompressed/zulip/webview.js | |
parent | Add list of recipes (diff) | |
download | ferdium-recipes-728d339739b63e9bb59e457e4a84fe9a65b93fc9.tar.gz ferdium-recipes-728d339739b63e9bb59e457e4a84fe9a65b93fc9.tar.zst ferdium-recipes-728d339739b63e9bb59e457e4a84fe9a65b93fc9.zip |
Add uncompressed recipes
Diffstat (limited to 'uncompressed/zulip/webview.js')
-rw-r--r-- | uncompressed/zulip/webview.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/uncompressed/zulip/webview.js b/uncompressed/zulip/webview.js new file mode 100644 index 0000000..092087f --- /dev/null +++ b/uncompressed/zulip/webview.js | |||
@@ -0,0 +1,10 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | module.exports = Franz => { | ||
4 | const getMessages = function getMessages() { | ||
5 | const allMessages = Math.round(document.querySelectorAll("#global_filters .home-link .count .value")[0].innerText); | ||
6 | Franz.setBadge(allMessages); | ||
7 | }; | ||
8 | Franz.loop(getMessages); | ||
9 | }; | ||
10 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInp1bGlwL3dlYnZpZXcuanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56IiwiZ2V0TWVzc2FnZXMiLCJhbGxNZXNzYWdlcyIsIk1hdGgiLCJyb3VuZCIsImRvY3VtZW50IiwicXVlcnlTZWxlY3RvckFsbCIsImlubmVyVGV4dCIsInNldEJhZGdlIiwibG9vcCJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFrQkMsS0FBRCxJQUFXO0FBQ3hCLFVBQU1DLGNBQWMsU0FBU0EsV0FBVCxHQUF1QjtBQUN2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