Skip to content

Commit 01c872a

Browse files
authored
Merge pull request DuendeArchive#676 from alexanderbh/dev
Removed check for window.parent in notifyParent
2 parents c552eb5 + d695a3d commit 01c872a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/IFrameWindow.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ export class IFrameWindow {
105105

106106
static notifyParent(url) {
107107
Log.debug("IFrameWindow.notifyParent");
108-
109-
if (window.parent && window !== window.parent) {
108+
if (window.frameElement) {
110109
url = url || window.location.href;
111110
if (url) {
112111
Log.debug("IFrameWindow.notifyParent: posting url message to parent");

0 commit comments

Comments
 (0)