Skip to content

Commit

Permalink
fix(PostMessage): Fix postmessage for IE
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Balbo committed Apr 18, 2018
1 parent 6f9e3a8 commit 3936717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PostMessageUtils.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export class PostMessageUtils {
static sendPostMessage(message) {
const parentDomain = window.location.ancestorOrigins[0] || 'https://chat.blip.ai'
const parentDomain = window.location.ancestorOrigins ? window.location.ancestorOrigins[0] : 'https://chat.blip.ai'
window.parent.postMessage(message, parentDomain)
}
}

0 comments on commit 3936717

Please sign in to comment.