actually use webkitRequestFullscreen

This commit is contained in:
Sanjay B 2021-10-25 15:23:08 +05:30
parent b0a9f6c02b
commit 7fb6fcea4a

View file

@ -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})`);