diff options
author | 2020-03-06 11:31:19 +0100 | |
---|---|---|
committer | 2020-03-06 11:31:19 +0100 | |
commit | 332bfc4139371f489a34326ebdf48ce5d4bf0b8b (patch) | |
tree | ea6d6cdaf6984a4c9d9099f545840202007d9e7d /uncompressed/gmailinbox/webview.js | |
parent | #34 Switch Office 365 Outlook recipe (diff) | |
parent | Remove discountinued Google services (Allo/Inbox) #49 #50 (diff) | |
download | ferdium-recipes-332bfc4139371f489a34326ebdf48ce5d4bf0b8b.tar.gz ferdium-recipes-332bfc4139371f489a34326ebdf48ce5d4bf0b8b.tar.zst ferdium-recipes-332bfc4139371f489a34326ebdf48ce5d4bf0b8b.zip |
Merge branch 'master' of https://github.com/getferdi/recipes
Diffstat (limited to 'uncompressed/gmailinbox/webview.js')
-rw-r--r-- | uncompressed/gmailinbox/webview.js | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/uncompressed/gmailinbox/webview.js b/uncompressed/gmailinbox/webview.js deleted file mode 100644 index efaebb3..0000000 --- a/uncompressed/gmailinbox/webview.js +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | 'use strict'; | ||
2 | |||
3 | module.exports = Franz => { | ||
4 | const getMessages = function getMessages() { | ||
5 | let count = 0; | ||
6 | |||
7 | if (document.querySelectorAll('.DsPmj').length > 0) { | ||
8 | count = document.querySelectorAll('.DsPmj')[0].querySelectorAll('div.G3').length; | ||
9 | } | ||
10 | |||
11 | // set Franz badge | ||
12 | Franz.setBadge(count); | ||
13 | }; | ||
14 | |||
15 | // check for new messages every second and update Franz badge | ||
16 | Franz.loop(getMessages); | ||
17 | }; | ||
18 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImdtYWlsaW5ib3gvd2Vidmlldy5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiLCJnZXRNZXNzYWdlcyIsImNvdW50IiwiZG9jdW1lbnQiLCJxdWVyeVN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