Skip to content

Commit

Permalink
fix: handlePostMessageFromView src check not working when viewer is e…
Browse files Browse the repository at this point in the history
…mbedded in iframe.
  • Loading branch information
micwallace committed Nov 24, 2023
1 parent 02e0b78 commit 339f6d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class CardPopover implements IViewBinding {

protected handlePostMessageFromView(event: MessageEvent) {

if (!this.iframe || !this.iframe.src)
if (!this.iframe)
return;

if (event.source !== this.iframe.contentWindow) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export abstract class AbstractViewBinding implements IViewBinding {

protected handlePostMessageFromView(event: MessageEvent) {

if (!this.iframe.src)
if (!this.iframe)
return;

if (event.source !== this.iframe.contentWindow) {
Expand Down

0 comments on commit 339f6d0

Please sign in to comment.