Skip to content

Commit

Permalink
fix: Handled embed case when message event is not provided (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
chavda-bhavik authored May 17, 2023
2 parents e8a95be + 0f6d327 commit 2324f56
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libs/embed/src/embed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ class Impler {
};

postMessageToContentWindow(type: EventTypesEnum, value?: any): void {
if (!this.listeners['message']) {
return;
}
this.listeners['message']({ type, value });
}

Expand Down

0 comments on commit 2324f56

Please sign in to comment.