Merge pull request 'dont use document.fullscreen, fixes #18' (#21) from no-document-fullscreen into main

Reviewed-on: 0x2620/aab21#21
This commit is contained in:
sanj 2021-10-24 12:21:59 +00:00
commit 8c0d2d81cb

View file

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