diff --git a/src/NewWindow.js b/src/NewWindow.js index 19dbfb2..8a3fa31 100644 --- a/src/NewWindow.js +++ b/src/NewWindow.js @@ -102,7 +102,7 @@ class NewWindow extends React.PureComponent { // Open a new window. this.window = window.open(url, name, toWindowFeatures(features)) - this.container = this.window.document.createElement('div') + // When a new window use content from a cross-origin there's no way we can attach event // to it. Therefore, we need to detect in a interval when the new window was destroyed // or was closed.