diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2014-06-25 13:56:24 +0200 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2014-06-25 13:56:24 +0200 |
commit | 7e8fd09376a75ac793bbea4efff30d5056fea559 (patch) | |
tree | 84cadcc003168c42eb5b6c63232665ae0d25ed3a /js/reveal.js | |
parent | ef333300a20b7412176525e542b5fd61ef776e94 (diff) | |
download | fosdem-2018-presentation-7e8fd09376a75ac793bbea4efff30d5056fea559.tar fosdem-2018-presentation-7e8fd09376a75ac793bbea4efff30d5056fea559.tar.gz |
fix npe
Diffstat (limited to 'js/reveal.js')
-rw-r--r-- | js/reveal.js | 2 |
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' ) ) { |