diff options
author | 2021-08-27 18:13:24 +0530 | |
---|---|---|
committer | 2021-08-27 18:13:24 +0530 | |
commit | 155c4b832281348c16be1f4ef667e6e23dbf1bd8 (patch) | |
tree | d144e2de2e6c7fb2e334246e8a4aecdbeb08ef8d /recipes/protonet/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/protonet/webview.js')
-rwxr-xr-x | recipes/protonet/webview.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/recipes/protonet/webview.js b/recipes/protonet/webview.js index 1d81e99..9ada45a 100755 --- a/recipes/protonet/webview.js +++ b/recipes/protonet/webview.js | |||
@@ -1,10 +1,10 @@ | |||
1 | module.exports = (Franz, options) => { | 1 | module.exports = (Ferdi) => { |
2 | const getMessages = () => { | 2 | const getMessages = () => { |
3 | const unreadPrivateMessages = parseInt($('.messages .unread-meeps').text()); | 3 | const unreadPrivateMessages = parseInt($('.messages .unread-meeps').text()); |
4 | const unreadGroupMessages = parseInt($('.today .unread-meeps').text()); | 4 | const unreadGroupMessages = parseInt($('.today .unread-meeps').text()); |
5 | 5 | ||
6 | Franz.setBadge(unreadPrivateMessages + unreadGroupMessages); | 6 | Ferdi.setBadge(unreadPrivateMessages + unreadGroupMessages); |
7 | }; | 7 | }; |
8 | 8 | ||
9 | Franz.loop(getMessages); | 9 | Ferdi.loop(getMessages); |
10 | }; | 10 | }; |