diff options
author | 2021-08-27 18:13:24 +0530 | |
---|---|---|
committer | 2021-08-27 18:13:24 +0530 | |
commit | 155c4b832281348c16be1f4ef667e6e23dbf1bd8 (patch) | |
tree | d144e2de2e6c7fb2e334246e8a4aecdbeb08ef8d /recipes/rainloop/webview.js | |
parent | docs: fixed template file for creating recipe. (diff) | |
download | ferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.tar.gz ferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.tar.zst ferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.zip |
chore: normalized all recipes to ensure compatibility with es6 (#639)
- Removed some calls to set badge with '0' all the time.
- Removed all 'sourceMaps' since they are all outdated atm.
Diffstat (limited to 'recipes/rainloop/webview.js')
-rw-r--r-- | recipes/rainloop/webview.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/recipes/rainloop/webview.js b/recipes/rainloop/webview.js index 1440d97..e5052b8 100644 --- a/recipes/rainloop/webview.js +++ b/recipes/rainloop/webview.js | |||
@@ -1,4 +1,4 @@ | |||
1 | module.exports = Franz => { | 1 | module.exports = Ferdi => { |
2 | const getMessages = () => { | 2 | const getMessages = () => { |
3 | let updates = 0; | 3 | let updates = 0; |
4 | let inbox = 0; | 4 | let inbox = 0; |
@@ -18,8 +18,8 @@ module.exports = Franz => { | |||
18 | }); | 18 | }); |
19 | 19 | ||
20 | full = inbox + updates; | 20 | full = inbox + updates; |
21 | Franz.setBadge(full); | 21 | Ferdi.setBadge(full); |
22 | }; | 22 | }; |
23 | Franz.loop(getMessages); | 23 | |
24 | Ferdi.loop(getMessages); | ||
24 | }; | 25 | }; |
25 | // # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJhaW5sb29wL3dlYnZpZXcuanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56IiwiZ2V0TWVzc2FnZXMiLCJ1cGRhdGVzIiw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lubG9vcC93ZWJ2aWV3LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBGcmFueiA9PiB7XG4gICAgY29uc3QgZ2V0TWVzc2FnZXMgPSAoKSA9PiB7XG4gICAgICAgIGxldCB1cGRhdGVzID0gMDtcbiAgICAgICAgbGV0IGluYm94ID0gMDtcblx0XHRsZXQgZnVsbCA9IDA7XG5cbiAgICAgICAgJCgnLmItZm9sZGVycy11c2VyIC51aS1kcm9wcGFibGUnKS5lYWNoKChpLCBvYmopID0+IHtcbiAgICAgICAgICAgIGNvbnN0IGNvdW50VGV4dCA9ICQob2JqKS5maW5kKCcuY291bnQnKS5maXJzdCgpLmh0bWwoKTtcbiAgICAgICAgICAgIGlmICh0eXBlb2YgY291bnRUZXh0ID09PSAnc3RyaW5nJyAmJiBjb3VudFRleHQgIT09ICcnKSB7XG4gICAgICAgICAgICAgICAgaWYgKCQob2JqKS5oYXNDbGFzcygnc3lzdGVtJykpIHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKCQob2JqKS5oYXNDbGFzcygnaS1hbS1pbmJveCcpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBpbmJveCArPSBwYXJzZUludChjb3VudFRleHQpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgdXBkYXRlcyArPSBwYXJzZUludChjb3VudFRleHQpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG5cblx0XHRmdWxsID0gaW5ib3ggKyB1cGRhdGVzO1xuICAgICAgICBGcmFuei5zZXRCYWRnZShmdWxsKTtcbiAgICB9O1xuICAgIEZyYW56Lmxvb3AoZ2V0TWVzc2FnZXMpO1xufTtcbiJdfQ== | ||