aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/reveal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 2355098..edf3073 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -2618,7 +2618,7 @@
*/
function stopEmbeddedContent( slide ) {
- if( slide ) {
+ if( slide && slide.parentNode ) {
// HTML5 media elements
toArray( slide.querySelectorAll( 'video, audio' ) ).forEach( function( el ) {
if( !el.hasAttribute( 'data-ignore' ) ) {