Explorar o código

Merge pull request #1310 from teawithfruit/patch-1

solves early access error with video element
Hakim El Hattab %!s(int64=9) %!d(string=hai) anos
pai
achega
75d38379b7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      js/reveal.js

+ 1 - 1
js/reveal.js

@@ -2619,7 +2619,7 @@
 			// Start video playback
 			var currentVideo = currentBackground.querySelector( 'video' );
 			if( currentVideo ) {
-				currentVideo.currentTime = 0;
+				if(currentVideo.currentTime > 0) currentVideo.currentTime = 0;
 				currentVideo.play();
 			}