Open lejara opened 2 years ago
In Firefox, i noticed the script would crash if the this.window is null on line https://github.com/rmariuzzo/react-new-window/blob/d9dbb75f7648e87abc75ea9b0c758be73f375d7a/src/NewWindow.js#L102
this.window
and this.setState({ mounted: true }) is set regardless.
this.setState({ mounted: true })
This pr fixes this issue which allows onBlock to be called.
In Firefox, i noticed the script would crash if the
this.window
is null on line https://github.com/rmariuzzo/react-new-window/blob/d9dbb75f7648e87abc75ea9b0c758be73f375d7a/src/NewWindow.js#L102and
this.setState({ mounted: true })
is set regardless.This pr fixes this issue which allows onBlock to be called.