diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2015-05-07 16:36:57 +0200 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2015-05-07 16:36:57 +0200 |
commit | e16a220a624cc3f9888ae59feebbd989669a7f31 (patch) | |
tree | a2f741ca3525fc25c82fadd2a703027a80ed575d | |
parent | af270a909cdbf0de6edd25dfac4aeae0a58e8ab7 (diff) | |
download | perl-software-in-gnu-guix-e16a220a624cc3f9888ae59feebbd989669a7f31.tar perl-software-in-gnu-guix-e16a220a624cc3f9888ae59feebbd989669a7f31.tar.gz |
fix iframe unload in firefox
-rw-r--r-- | js/reveal.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js index 2c55833..c46ddb6 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -2986,6 +2986,9 @@ // Lazy loading iframes toArray( slide.querySelectorAll( 'iframe[data-src]' ) ).forEach( function( el ) { + // Only removing the src doesn't actually unload the frame + // in all browsers (Firefox) so we set it to blank first + el.setAttribute( 'src', 'about:blank' ); el.removeAttribute( 'src' ); } ); } |