From 34c1a993f262f735a89e1856785b88c7858f5a10 Mon Sep 17 00:00:00 2001 From: Sanjay B Date: Sun, 24 Oct 2021 17:50:17 +0530 Subject: [PATCH] dont use document.fullscreen, fixes #18 --- app/static/js/film.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/static/js/film.js b/app/static/js/film.js index ed49e7d..570caff 100644 --- a/app/static/js/film.js +++ b/app/static/js/film.js @@ -41,7 +41,7 @@ document.querySelector('a#play-fullscreen').addEventListener('click', event => { } video.addEventListener('play', enterFullscreen); video.addEventListener('fullscreenchange', event => { - if (!document.fullscreen) { + if (document.fullscreenElement === null) { continueTimecode = video.currentTime video.remove() if (document.fullscreenElement) {