Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into dev
  • Loading branch information
brockallen committed Aug 5, 2020
2 parents 729b931 + c311a72 commit 85d5e58
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/IFrameWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,10 @@ export class IFrameWindow {

static notifyParent(url) {
Log.debug("IFrameWindow.notifyParent");
if (window.frameElement) {
url = url || window.location.href;
if (url) {
Log.debug("IFrameWindow.notifyParent: posting url message to parent");
window.parent.postMessage(url, location.protocol + "//" + location.host);
}
url = url || window.location.href;
if (url) {
Log.debug("IFrameWindow.notifyParent: posting url message to parent");
window.parent.postMessage(url, location.protocol + "//" + location.host);
}
}
}

0 comments on commit 85d5e58

Please sign in to comment.