From ec4e86af80a01f77d86c543b219a50a89cd16e85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9C=A0=EC=A2=85=ED=9B=88?= Date: Thu, 27 Jun 2019 10:09:04 +0900 Subject: [PATCH] IE fix --- src/NewWindow.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/NewWindow.js b/src/NewWindow.js index 54a5d5a..b898eec 100644 --- a/src/NewWindow.js +++ b/src/NewWindow.js @@ -34,7 +34,9 @@ class NewWindow extends React.PureComponent { */ constructor(props) { super(props) - this.container = document.createElement('div') + //this will not work in IE(including Edge browser) + //this.container = document.createElement('div') + this.container = null this.window = null this.windowCheckerInterval = null this.released = false @@ -111,6 +113,8 @@ class NewWindow extends React.PureComponent { // Check if the new window was succesfully opened. if (this.window) { this.window.document.title = title + //fix for IE + this.container = this.window.document.createElement('div') this.window.document.body.appendChild(this.container) // If specified, copy styles from parent window's document.