mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-08-12 09:35:14 +02:00
fix npe
This commit is contained in:
@@ -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' ) ) {
|
||||||
|
Reference in New Issue
Block a user