dont use document.fullscreen, fixes #18
This commit is contained in:
parent
09d3dcc43d
commit
34c1a993f2
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue