Skip to content

Commit

Permalink
Emit error:preparing if we fire preparing but never make it to ready (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Jul 26, 2023
1 parent 682b001 commit ad944d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ClientWidgetApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}

Expand Down

0 comments on commit ad944d3

Please sign in to comment.