Make sure variable is not null
This commit is contained in:
1 parent
66e2c3660f
commit
5412b25538
1 file changed
+1
-1
@@ -165,7 +165,7 @@ class NewWindow extends React.PureComponent
|
||||
{
|
||||
if (this.window)
|
||||
{
|
||||
if (this.fullscreen.fullscreenEnabled)
|
||||
if (this.fullscreen && this.fullscreen.fullscreenEnabled)
|
||||
{
|
||||
this.fullscreen.removeEventListener('fullscreenchange', this.handleFullscreenChange);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user