diff --git a/calendar/experiments/calendar/parent/ext-calendar-provider.js b/calendar/experiments/calendar/parent/ext-calendar-provider.js index 89964eb..35e793a 100644 --- a/calendar/experiments/calendar/parent/ext-calendar-provider.js +++ b/calendar/experiments/calendar/parent/ext-calendar-provider.js @@ -146,9 +146,11 @@ class ExtCalendar extends cal.provider.BaseClass { try { this.capabilities = JSON.parse(super.getProperty("extensionCapabilities")); } catch (e) { - this.capabilities = this.extension.manifest.calendar_provider.capabilities || {}; + this.capabilities = null; } + this.capabilities ??= this.extension.manifest.calendar_provider.capabilities || {}; + this.extension.emit("calendar.provider.onInit", this); } }