Make sure variable is not null

This commit is contained in:
Håvar Aambø Fosstveit
2018-12-11 11:46:19 +01:00
parent 66e2c3660f
commit 5412b25538
+1 -1
View File
@@ -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);
}