From d2a64aaad565e48f375e18690163e2036d7fb79a Mon Sep 17 00:00:00 2001 From: Klaus Buecher Date: Tue, 1 Oct 2024 23:44:57 +0200 Subject: [PATCH] adapt for JSON.parse returning null --- calendar/experiments/calendar/parent/ext-calendar-provider.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/calendar/experiments/calendar/parent/ext-calendar-provider.js b/calendar/experiments/calendar/parent/ext-calendar-provider.js index 89964eb..afed6ed 100644 --- a/calendar/experiments/calendar/parent/ext-calendar-provider.js +++ b/calendar/experiments/calendar/parent/ext-calendar-provider.js @@ -144,7 +144,8 @@ class ExtCalendar extends cal.provider.BaseClass { super.id = val; if (this.id && this.uri) { try { - this.capabilities = JSON.parse(super.getProperty("extensionCapabilities")); + this.capabilities = JSON.parse(super.getProperty("extensionCapabilities"))|| + this.extension.manifest.calendar_provider.capabilities || {}; } catch (e) { this.capabilities = this.extension.manifest.calendar_provider.capabilities || {}; }