From 5412b25538713e70ff2b563c747da2489c146eee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5var=20Aamb=C3=B8=20Fosstveit?= Date: Tue, 11 Dec 2018 11:46:19 +0100 Subject: [PATCH] Make sure variable is not null --- app/lib/components/VideoWindow/NewWindow.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/components/VideoWindow/NewWindow.jsx b/app/lib/components/VideoWindow/NewWindow.jsx index db32f73..cb4b13e 100644 --- a/app/lib/components/VideoWindow/NewWindow.jsx +++ b/app/lib/components/VideoWindow/NewWindow.jsx @@ -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); }