aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2014-09-04 18:00:21 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2014-09-04 18:00:21 +0200
commit2cd988a7a347ddad39b4315b2f63e7c1105ecd19 (patch)
treef6b6f2862f22934635c5f49e5c6d04caa6465c85
parent80c375fae85d5b1edc2656641e03942739daa28b (diff)
downloadfosdem-2018-presentation-2cd988a7a347ddad39b4315b2f63e7c1105ecd19.tar
fosdem-2018-presentation-2cd988a7a347ddad39b4315b2f63e7c1105ecd19.tar.gz
fix previewLinks target
-rw-r--r--js/reveal.js10
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();
+ }
}
}