Make sure variable is not null

master
Håvar Aambø Fosstveit 2018-12-11 11:46:19 +01:00
parent 66e2c3660f
commit 5412b25538
1 changed files with 1 additions and 1 deletions

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);
}