Переглянути джерело

Do not add video backgrounds to speaker notes.

Jaan Pullerits 10 роки тому
батько
коміт
82a692c394
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      js/reveal.js

+ 1 - 1
js/reveal.js

@@ -2601,7 +2601,7 @@
 					background.style.backgroundImage = 'url('+ backgroundImage +')';
 				}
 				// Videos
-				else if ( backgroundVideo ) {
+				else if ( backgroundVideo && !isSpeakerNotes() ) {
 					var video = document.createElement( 'video' );
 
 					// Support comma separated lists of video sources