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:
commit
8c0d2d81cb
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('play', enterFullscreen);
|
||||||
video.addEventListener('fullscreenchange', event => {
|
video.addEventListener('fullscreenchange', event => {
|
||||||
if (!document.fullscreen) {
|
if (document.fullscreenElement === null) {
|
||||||
continueTimecode = video.currentTime
|
continueTimecode = video.currentTime
|
||||||
video.remove()
|
video.remove()
|
||||||
if (document.fullscreenElement) {
|
if (document.fullscreenElement) {
|
||||||
|
|
Loading…
Reference in a new issue