aboutsummaryrefslogtreecommitdiffstats
path: root/recipes
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2022-06-28 04:47:07 +0530
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2022-06-28 04:47:07 +0530
commitd79d303d596669f4fe3323f1ce5608e4e341e93a (patch)
tree27955559c70b02c43c96b1bc2959ba3314838584 /recipes
parentdocs: add pztrn as a contributor for code [skip ci] (#81) (diff)
downloadferdium-recipes-d79d303d596669f4fe3323f1ce5608e4e341e93a.tar.gz
ferdium-recipes-d79d303d596669f4fe3323f1ce5608e4e341e93a.tar.zst
ferdium-recipes-d79d303d596669f4fe3323f1ce5608e4e341e93a.zip
Fix syntax errors in nextcloud recipes
Diffstat (limited to 'recipes')
-rw-r--r--recipes/nextcloud-calendar/package.json2
-rw-r--r--recipes/nextcloud-calendar/webview.js2
-rw-r--r--recipes/nextcloud-talk/package.json2
-rw-r--r--recipes/nextcloud-talk/webview.js2
4 files changed, 4 insertions, 4 deletions
diff --git a/recipes/nextcloud-calendar/package.json b/recipes/nextcloud-calendar/package.json
index 027ea9b..f135caa 100644
--- a/recipes/nextcloud-calendar/package.json
+++ b/recipes/nextcloud-calendar/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "nextcloud-calendar", 2 "id": "nextcloud-calendar",
3 "name": "Nextcloud Calendar", 3 "name": "Nextcloud Calendar",
4 "version": "1.2.1", 4 "version": "1.2.2",
5 "license": "MIT", 5 "license": "MIT",
6 "repository": "https://github.com/csolisr/ferdium-recipes/tree/master/recipes/nextcloud-calendar/", 6 "repository": "https://github.com/csolisr/ferdium-recipes/tree/master/recipes/nextcloud-calendar/",
7 "config": { 7 "config": {
diff --git a/recipes/nextcloud-calendar/webview.js b/recipes/nextcloud-calendar/webview.js
index 49ed705..80bfc45 100644
--- a/recipes/nextcloud-calendar/webview.js
+++ b/recipes/nextcloud-calendar/webview.js
@@ -9,7 +9,7 @@ module.exports = Ferdium => {
9 const directSelector = document.querySelectorAll( 9 const directSelector = document.querySelectorAll(
10 '.notifications .notification-wrapper .notification[object_type="dav"]', 10 '.notifications .notification-wrapper .notification[object_type="dav"]',
11 ); 11 );
12 const direct = directSelector ? Ferdium.safeParseInt(selector.length) : 0; 12 const direct = directSelector ? Ferdium.safeParseInt(directSelector.length) : 0;
13 13
14 Ferdium.setBadge(direct); 14 Ferdium.setBadge(direct);
15 }; 15 };
diff --git a/recipes/nextcloud-talk/package.json b/recipes/nextcloud-talk/package.json
index 8ce25ac..e86bb8e 100644
--- a/recipes/nextcloud-talk/package.json
+++ b/recipes/nextcloud-talk/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "nextcloud-talk", 2 "id": "nextcloud-talk",
3 "name": "Nextcloud Talk", 3 "name": "Nextcloud Talk",
4 "version": "1.3.2", 4 "version": "1.3.3",
5 "license": "MIT", 5 "license": "MIT",
6 "repository": "https://github.com/csolisr/ferdium-recipes/tree/master/recipes/nextcloud-tasks/", 6 "repository": "https://github.com/csolisr/ferdium-recipes/tree/master/recipes/nextcloud-tasks/",
7 "config": { 7 "config": {
diff --git a/recipes/nextcloud-talk/webview.js b/recipes/nextcloud-talk/webview.js
index 77b969b..1c6d2a5 100644
--- a/recipes/nextcloud-talk/webview.js
+++ b/recipes/nextcloud-talk/webview.js
@@ -20,7 +20,7 @@ module.exports = Ferdium => {
20 let indirect = 0; 20 let indirect = 0;
21 21
22 for (const counter of document.querySelectorAll('.app-navigation-entry__counter')) { 22 for (const counter of document.querySelectorAll('.app-navigation-entry__counter')) {
23 const entryCounter = Ferdium.safeParseInt(counter.textContent) : 0; 23 const entryCounter = counter ? Ferdium.safeParseInt(counter.textContent) : 0;
24 indirect += entryCounter; 24 indirect += entryCounter;
25 } 25 }
26 26