aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/protonet
diff options
context:
space:
mode:
authorLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-08-27 18:13:24 +0530
committerLibravatar GitHub <noreply@github.com>2021-08-27 18:13:24 +0530
commit155c4b832281348c16be1f4ef667e6e23dbf1bd8 (patch)
treed144e2de2e6c7fb2e334246e8a4aecdbeb08ef8d /recipes/protonet
parentdocs: fixed template file for creating recipe. (diff)
downloadferdium-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')
-rwxr-xr-xrecipes/protonet/index.js2
-rwxr-xr-xrecipes/protonet/package.json2
-rwxr-xr-xrecipes/protonet/webview.js6
3 files changed, 5 insertions, 5 deletions
diff --git a/recipes/protonet/index.js b/recipes/protonet/index.js
index 258da41..23607bd 100755
--- a/recipes/protonet/index.js
+++ b/recipes/protonet/index.js
@@ -1 +1 @@
module.exports = Franz => Franz; module.exports = Ferdi => Ferdi;
diff --git a/recipes/protonet/package.json b/recipes/protonet/package.json
index 75d2175..bc4554d 100755
--- a/recipes/protonet/package.json
+++ b/recipes/protonet/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "protonet", 2 "id": "protonet",
3 "name": "protonet", 3 "name": "protonet",
4 "version": "1.0.3", 4 "version": "1.1.0",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://{teamID}.protonet.info", 7 "serviceURL": "https://{teamID}.protonet.info",
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 @@
1module.exports = (Franz, options) => { 1module.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};