Hakim El Hattab 10 лет назад
Родитель
Сommit
53b9dbc654
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      js/reveal.js

+ 3 - 2
js/reveal.js

@@ -2766,7 +2766,8 @@
 				// Videos
 				else if ( backgroundVideo && !isSpeakerNotes() ) {
 					var video = document.createElement( 'video' );
-					if ( backgroundVideoLoop ) {
+
+					if( backgroundVideoLoop ) {
 						video.setAttribute( 'loop', '' );
 					}
 
@@ -2778,7 +2779,7 @@
 					background.appendChild( video );
 				}
 				// Iframes
-				else if ( backgroundIframe ) {
+				else if( backgroundIframe ) {
 					var iframe = document.createElement( 'iframe' );
 						iframe.setAttribute( 'src', backgroundIframe );
 						iframe.style.width  = '100%';