diff --git a/app/static/js/film.js b/app/static/js/film.js index 6d2a206..2bb69e7 100644 --- a/app/static/js/film.js +++ b/app/static/js/film.js @@ -22,13 +22,13 @@ document.querySelector('a#play-fullscreen').addEventListener('click', event => { var video = document.createElement('video') video.classList.add('player') setVideoSrc(video, 'https://pad.ma/' + film.id + '/480p.webm') - console.log(video.src) video.controls = true document.querySelector('main').appendChild(video) video.style.display = 'none' function enterFullscreen(event) { video.requestFullscreen().catch(err => { console.log(`Error attempting to enable full-screen mode: ${err.message} (${err.name})`); + video.remove() }); video.removeEventListener('play', enterFullscreen); setTimeout(() => {