diff --git a/src/index.js b/src/index.js index 5a6785bc80fa..0bb347bae9f8 100644 --- a/src/index.js +++ b/src/index.js @@ -57,7 +57,7 @@ export class PostmsgTransport { } return iframe.contentWindow; } - return window.top; + return window.parent; } _handleEvent(e) {