Skip to content

Commit d2a64aa

Browse files
committed
adapt for JSON.parse returning null
1 parent cf0c3b5 commit d2a64aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

calendar/experiments/calendar/parent/ext-calendar-provider.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ class ExtCalendar extends cal.provider.BaseClass {
144144
super.id = val;
145145
if (this.id && this.uri) {
146146
try {
147-
this.capabilities = JSON.parse(super.getProperty("extensionCapabilities"));
147+
this.capabilities = JSON.parse(super.getProperty("extensionCapabilities"))||
148+
this.extension.manifest.calendar_provider.capabilities || {};
148149
} catch (e) {
149150
this.capabilities = this.extension.manifest.calendar_provider.capabilities || {};
150151
}

0 commit comments

Comments
 (0)