From d79d303d596669f4fe3323f1ce5608e4e341e93a Mon Sep 17 00:00:00 2001 From: Vijay A Date: Tue, 28 Jun 2022 04:47:07 +0530 Subject: Fix syntax errors in nextcloud recipes --- recipes/nextcloud-calendar/package.json | 2 +- recipes/nextcloud-calendar/webview.js | 2 +- recipes/nextcloud-talk/package.json | 2 +- recipes/nextcloud-talk/webview.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'recipes') 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 @@ { "id": "nextcloud-calendar", "name": "Nextcloud Calendar", - "version": "1.2.1", + "version": "1.2.2", "license": "MIT", "repository": "https://github.com/csolisr/ferdium-recipes/tree/master/recipes/nextcloud-calendar/", "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 => { const directSelector = document.querySelectorAll( '.notifications .notification-wrapper .notification[object_type="dav"]', ); - const direct = directSelector ? Ferdium.safeParseInt(selector.length) : 0; + const direct = directSelector ? Ferdium.safeParseInt(directSelector.length) : 0; Ferdium.setBadge(direct); }; 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 @@ { "id": "nextcloud-talk", "name": "Nextcloud Talk", - "version": "1.3.2", + "version": "1.3.3", "license": "MIT", "repository": "https://github.com/csolisr/ferdium-recipes/tree/master/recipes/nextcloud-tasks/", "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 => { let indirect = 0; for (const counter of document.querySelectorAll('.app-navigation-entry__counter')) { - const entryCounter = Ferdium.safeParseInt(counter.textContent) : 0; + const entryCounter = counter ? Ferdium.safeParseInt(counter.textContent) : 0; indirect += entryCounter; } -- cgit v1.2.3-70-g09d2