diff options
author | 2020-09-22 20:56:48 +0200 | |
---|---|---|
committer | 2020-09-22 19:56:48 +0100 | |
commit | 6f5e4a00588aefdda7a5a1cfe70935870e7e234a (patch) | |
tree | 9e29aa7aa0620a1a4a968ff8739b4b8ba96791a9 /uncompressed/rainloop/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 'uncompressed/rainloop/webview.js')
-rw-r--r-- | uncompressed/rainloop/webview.js | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/uncompressed/rainloop/webview.js b/uncompressed/rainloop/webview.js deleted file mode 100644 index 170e1a6..0000000 --- a/uncompressed/rainloop/webview.js +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | 'use strict'; | ||
2 | |||
3 | module.exports = Franz => { | ||
4 | const getMessages = () => { | ||
5 | let updates = 0; | ||
6 | let inbox = 0; | ||
7 | let full = 0; | ||
8 | |||
9 | $('.b-folders-user .ui-droppable').each((i, obj) => { | ||
10 | const countText = $(obj).find('.count').first().html(); | ||
11 | if (typeof countText === 'string' && countText !== '') { | ||
12 | if ($(obj).hasClass('system')) { | ||
13 | if ($(obj).hasClass('i-am-inbox')) { | ||
14 | inbox += parseInt(countText); | ||
15 | } | ||
16 | } else { | ||
17 | updates += parseInt(countText); | ||
18 | } | ||
19 | } | ||
20 | }); | ||
21 | |||
22 | full = inbox + updates; | ||
23 | Franz.setBadge(full); | ||
24 | }; | ||
25 | Franz.loop(getMessages); | ||
26 | }; | ||
27 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJhaW5sb29wL3dlYnZpZXc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mO0FBQ0gsS0FwQkQ7QUFxQkFKLFVBQU1nQixJQUFOLENBQVdmLFdBQVg7QUFDSCxDQXZCRCIsImZpbGUiOiJyYWlubG9vcC93ZWJ2aWV3LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBGcmFueiA9PiB7XG4gICAgY29uc3QgZ2V0TWVzc2FnZXMgPSAoKSA9PiB7XG4gICAgICAgIGxldCB1cGRhdGVzID0gMDtcbiAgICAgICAgbGV0IGluYm94ID0gMDtcblx0XHRsZXQgZnVsbCA9IDA7XG5cbiAgICAgICAgJCgnLmItZm9sZGVycy11c2VyIC51aS1kcm9wcGFibGUnKS5lYWNoKChpLCBvYmopID0+IHtcbiAgICAgICAgICAgIGNvbnN0IGNvdW50VGV4dCA9ICQob2JqKS5maW5kKCcuY291bnQnKS5maXJzdCgpLmh0bWwoKTtcbiAgICAgICAgICAgIGlmICh0eXBlb2YgY291bnRUZXh0ID09PSAnc3RyaW5nJyAmJiBjb3VudFRleHQgIT09ICcnKSB7XG4gICAgICAgICAgICAgICAgaWYgKCQob2JqKS5oYXNDbGFzcygnc3lzdGVtJykpIHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKCQob2JqKS5oYXNDbGFzcygnaS1hbS1pbmJveCcpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBpbmJveCArPSBwYXJzZUludChjb3VudFRleHQpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgdXBkYXRlcyArPSBwYXJzZUludChjb3VudFRleHQpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG5cblx0XHRmdWxsID0gaW5ib3ggKyB1cGRhdGVzO1xuICAgICAgICBGcmFuei5zZXRCYWRnZShmdWxsKTtcbiAgICB9O1xuICAgIEZyYW56Lmxvb3AoZ2V0TWVzc2FnZXMpO1xufTtcbiJdfQ== \ No newline at end of file | ||