Skip to content

Commit 49363a8

Browse files
authored
Removed check for window.parent in notifyParent
1 parent d868940 commit 49363a8

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/IFrameWindow.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,10 @@ export class IFrameWindow {
106106
static notifyParent(url) {
107107
Log.debug("IFrameWindow.notifyParent");
108108

109-
if (window.parent && window !== window.parent) {
110-
url = url || window.location.href;
111-
if (url) {
112-
Log.debug("IFrameWindow.notifyParent: posting url message to parent");
113-
window.parent.postMessage(url, location.protocol + "//" + location.host);
114-
}
109+
url = url || window.location.href;
110+
if (url) {
111+
Log.debug("IFrameWindow.notifyParent: posting url message to parent");
112+
window.parent.postMessage(url, location.protocol + "//" + location.host);
115113
}
116114
}
117115
}

0 commit comments

Comments
 (0)