1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-02-24 17:03:09 +01:00
This commit is contained in:
Hakim El Hattab 2014-06-25 13:56:24 +02:00
parent ef333300a2
commit 7e8fd09376

View File

@ -2618,7 +2618,7 @@
*/ */
function stopEmbeddedContent( slide ) { function stopEmbeddedContent( slide ) {
if( slide ) { if( slide && slide.parentNode ) {
// HTML5 media elements // HTML5 media elements
toArray( slide.querySelectorAll( 'video, audio' ) ).forEach( function( el ) { toArray( slide.querySelectorAll( 'video, audio' ) ).forEach( function( el ) {
if( !el.hasAttribute( 'data-ignore' ) ) { if( !el.hasAttribute( 'data-ignore' ) ) {