diff options
author | 2020-02-28 22:52:30 +0100 | |
---|---|---|
committer | 2020-02-28 22:52:30 +0100 | |
commit | 65ff976ebb463105ff409b93938cd673c797292c (patch) | |
tree | 79ab8f784451de0d4817cc8acb055cb33b142dbb /uncompressed/googleallo/webview.js | |
parent | Merge pull request #51 from antoine-aumjaud/master (diff) | |
download | ferdium-recipes-65ff976ebb463105ff409b93938cd673c797292c.tar.gz ferdium-recipes-65ff976ebb463105ff409b93938cd673c797292c.tar.zst ferdium-recipes-65ff976ebb463105ff409b93938cd673c797292c.zip |
Diffstat (limited to 'uncompressed/googleallo/webview.js')
-rw-r--r-- | uncompressed/googleallo/webview.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/uncompressed/googleallo/webview.js b/uncompressed/googleallo/webview.js deleted file mode 100644 index dbb0fa3..0000000 --- a/uncompressed/googleallo/webview.js +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | 'use strict'; | ||
2 | |||
3 | module.exports = Franz => { | ||
4 | const getMessages = function getMessages() { | ||
5 | let count = 0; | ||
6 | |||
7 | const elements = document.querySelectorAll('.unreadCount'); | ||
8 | for (let i = 0; i < elements.length; i += 1) { | ||
9 | if (parseInt(elements[i].innerHTML, 10) !== 0) { | ||
10 | count += 1; | ||
11 | } | ||
12 | } | ||
13 | |||
14 | Franz.setBadge(count); | ||
15 | }; | ||
16 | |||
17 | Franz.loop(getMessages); | ||
18 | }; | ||
19 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImdvb2dsZWFsbG8vd2Vidmlldy5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiLCJnZXRNZXNzYWdlcyIsImNvdW50IiwiZWxlbWVudHMiLCJkb2N1bWVudCIsInF1ZXJ5U2VsZWN0b3JBbGwiLCJpIiwibGVuZ3RoIiwicGFyc2VJbnQiLCJpbm5lckhUTUwiLCJzZXRCYWRnZSIsImxvb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