diff --git a/src/ClientWidgetApi.ts b/src/ClientWidgetApi.ts index fd8b049..6611013 100644 --- a/src/ClientWidgetApi.ts +++ b/src/ClientWidgetApi.ts @@ -217,6 +217,8 @@ export class ClientWidgetApi extends EventEmitter { this.allowedEvents = WidgetEventCapability.findEventCapabilities(allowedCaps); this.notifyCapabilities(requestedCaps); this.emit("ready"); + }).catch(e => { + this.emit("error:preparing", e); }); }