From 7fb6fcea4a6b512827ef809d93af24507c7cb181 Mon Sep 17 00:00:00 2001 From: Sanjay B Date: Mon, 25 Oct 2021 15:23:08 +0530 Subject: [PATCH] actually use webkitRequestFullscreen --- 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 144a142..027c175 100644 --- a/app/static/js/film.js +++ b/app/static/js/film.js @@ -35,7 +35,7 @@ document.querySelector('a#play-fullscreen').addEventListener('click', event => { function enterFullscreen(event) { video.removeEventListener('play', enterFullscreen); if (video.webkitRequestFullscreen) { - video.requestFullscreen(); + video.webkitRequestFullscreen(); } else { video.requestFullscreen().catch(err => { console.log(`Error attempting to enable full-screen mode: ${err.message} (${err.name})`);