diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2014-09-04 18:00:21 +0200 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2014-09-04 18:00:21 +0200 |
commit | 2cd988a7a347ddad39b4315b2f63e7c1105ecd19 (patch) | |
tree | f6b6f2862f22934635c5f49e5c6d04caa6465c85 | |
parent | 80c375fae85d5b1edc2656641e03942739daa28b (diff) | |
download | fosdem-2018-presentation-2cd988a7a347ddad39b4315b2f63e7c1105ecd19.tar fosdem-2018-presentation-2cd988a7a347ddad39b4315b2f63e7c1105ecd19.tar.gz |
fix previewLinks target
-rw-r--r-- | js/reveal.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/js/reveal.js b/js/reveal.js index 8110afc..25f0dcf 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -3778,10 +3778,12 @@ */ function onPreviewLinkClicked( event ) { - var url = event.target.getAttribute( 'href' ); - if( url ) { - showPreview( url ); - event.preventDefault(); + if( event.currentTarget && event.currentTarget.hasAttribute( 'href' ) ) { + var url = event.currentTarget.getAttribute( 'href' ); + if( url ) { + showPreview( url ); + event.preventDefault(); + } } } |