Make sure variable is not null
parent
66e2c3660f
commit
5412b25538
|
|
@ -165,7 +165,7 @@ class NewWindow extends React.PureComponent
|
||||||
{
|
{
|
||||||
if (this.window)
|
if (this.window)
|
||||||
{
|
{
|
||||||
if (this.fullscreen.fullscreenEnabled)
|
if (this.fullscreen && this.fullscreen.fullscreenEnabled)
|
||||||
{
|
{
|
||||||
this.fullscreen.removeEventListener('fullscreenchange', this.handleFullscreenChange);
|
this.fullscreen.removeEventListener('fullscreenchange', this.handleFullscreenChange);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue