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) {