Skip to content

Commit c2ba727

Browse files
committed
changes to how popup window is closed (for IE)
1 parent f358abd commit c2ba727

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎src/PopupWindow.js‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,17 @@ export default class PopupWindow {
6969

7070
this._checkForPopupClosedTimer = null;
7171
this._boundMessageEventssage = null;
72+
73+
if (this._popup){
74+
this._popup.close();
75+
}
7276
this._popup = null;
7377
}
7478

7579
_checkForPopupClosed() {
7680
Log.info("PopupWindow._checkForPopupClosed");
7781

78-
if (!this._popup || !this._popup.window || this._popup.closed) {
82+
if (!this._popup || this._popup.closed) {
7983
this._error("Popup window closed");
8084
}
8185
}
@@ -112,9 +116,7 @@ export default class PopupWindow {
112116
url = url || window.location.href;
113117
if (url) {
114118
Log.info("posting url message to opener");
115-
116119
window.opener.postMessage({ url: url }, location.protocol + "//" + location.host);
117-
window.close();
118120
}
119121
}
120122
}

0 commit comments

Comments
 (0)