diff options
author | 2020-09-22 20:56:48 +0200 | |
---|---|---|
committer | 2020-09-22 19:56:48 +0100 | |
commit | 6f5e4a00588aefdda7a5a1cfe70935870e7e234a (patch) | |
tree | 9e29aa7aa0620a1a4a968ff8739b4b8ba96791a9 /uncompressed/vk/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/vk/webview.js')
-rw-r--r-- | uncompressed/vk/webview.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/uncompressed/vk/webview.js b/uncompressed/vk/webview.js deleted file mode 100644 index 96daa07..0000000 --- a/uncompressed/vk/webview.js +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | 'use strict'; | ||
2 | |||
3 | module.exports = Franz => { | ||
4 | const getMessages = function getMessages() { | ||
5 | let directs = 0; | ||
6 | if (document.getElementsByClassName('left_count').length > 0) { | ||
7 | directs = parseInt(document.getElementsByClassName('left_count')[0].innerText, 10); | ||
8 | } | ||
9 | |||
10 | if (isNaN(directs)) { | ||
11 | directs = 0; | ||
12 | } | ||
13 | |||
14 | Franz.setBadge(directs); | ||
15 | }; | ||
16 | |||
17 | Franz.loop(getMessages); | ||
18 | }; | ||
19 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInZrL3dlYnZpZXcuanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56IiwiZ2V0TWVzc2FnZXMiLCJkaXJlY3RzIiwiZG9jdW1lbnQiLCJnZXRFbGVtZW50c0J5Q2xhc3NOYW1lIiwibGVuZ3RoIiwicGFyc2VJ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