diff options
author | 2021-07-31 15:28:23 +0530 | |
---|---|---|
committer | 2021-07-31 15:28:23 +0530 | |
commit | 97697e3d069972844b2912a93022f4a4904a40d6 (patch) | |
tree | 53faff30fbac9d72042f593dfe1c547809f4f121 /recipes/protonet | |
parent | Allow any url in the custom-service to allow for sites like 'http://translate... (diff) | |
download | ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.tar.gz ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.tar.zst ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.zip |
Fixed eslintrc as root for this folder; Reformatted all files.
Diffstat (limited to 'recipes/protonet')
-rwxr-xr-x | recipes/protonet/webview.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/recipes/protonet/webview.js b/recipes/protonet/webview.js index 8b597cf..1d81e99 100755 --- a/recipes/protonet/webview.js +++ b/recipes/protonet/webview.js | |||
@@ -1,10 +1,10 @@ | |||
1 | module.exports = (Franz, options) => { | 1 | module.exports = (Franz, options) => { |
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 | Franz.setBadge(unreadPrivateMessages + unreadGroupMessages); |
7 | } | 7 | }; |
8 | 8 | ||
9 | Franz.loop(getMessages); | 9 | Franz.loop(getMessages); |
10 | } | 10 | }; |