fix previewLinks target
This commit is contained in:
parent
80c375fae8
commit
2cd988a7a3
10
js/reveal.js
10
js/reveal.js
|
@ -3778,10 +3778,12 @@
|
||||||
*/
|
*/
|
||||||
function onPreviewLinkClicked( event ) {
|
function onPreviewLinkClicked( event ) {
|
||||||
|
|
||||||
var url = event.target.getAttribute( 'href' );
|
if( event.currentTarget && event.currentTarget.hasAttribute( 'href' ) ) {
|
||||||
if( url ) {
|
var url = event.currentTarget.getAttribute( 'href' );
|
||||||
showPreview( url );
|
if( url ) {
|
||||||
event.preventDefault();
|
showPreview( url );
|
||||||
|
event.preventDefault();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user