diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2015-05-06 11:25:50 +0200 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2015-05-06 11:25:58 +0200 |
commit | 207b0c71ede4a37ec06797802c22e7c5d61346f6 (patch) | |
tree | 82adb5c2337b857b33c8a53ea1013a56cfaa513f /js/reveal.js | |
parent | e67dc9251a38d19cf588eb226d32a67f4d71c7d7 (diff) | |
download | fosdem-2018-presentation-207b0c71ede4a37ec06797802c22e7c5d61346f6.tar fosdem-2018-presentation-207b0c71ede4a37ec06797802c22e7c5d61346f6.tar.gz |
fix lazy load selector error
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 3bd292a..ecba3a9 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -2723,7 +2723,7 @@ slide.style.display = 'block'; // Media elements with data-src attributes - toArray( slide.querySelectorAll( 'img[data-src]', 'video[data-src]', 'audio[data-src]' ) ).forEach( function( element ) { + toArray( slide.querySelectorAll( 'img[data-src], video[data-src], audio[data-src]' ) ).forEach( function( element ) { element.setAttribute( 'src', element.getAttribute( 'data-src' ) ); element.removeAttribute( 'data-src' ); } ); |