Explorar el Código

fix data-autoplay on first slide

Hakim El Hattab hace 11 años
padre
commit
c1ea5282e1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      js/reveal.js

+ 1 - 1
js/reveal.js

@@ -1818,7 +1818,7 @@
 		}
 
 		// Handle embedded content
-		if( slideChanged ) {
+		if( slideChanged || !previousSlide ) {
 			stopEmbeddedContent( previousSlide );
 			startEmbeddedContent( currentSlide );
 		}