Skip to content

Commit

Permalink
Merge pull request IdentityModel#925 from alexanderbh/patch-1
Browse files Browse the repository at this point in the history
Remove the check for "inside a frame"
brockallen authored Aug 5, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 75f2297 + 8510cd4 commit c311a72
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
@@ -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 c311a72

Please sign in to comment.