js: Ignore anchors without href in `events.linkClicked()`

This commit is contained in:
Johannes Meyer 2019-12-13 16:13:55 +01:00
parent 63452ba250
commit b85360449b
1 changed files with 5 additions and 0 deletions

View File

@ -269,6 +269,11 @@
var linkTarget = $a.attr('target');
var $target;
var formerUrl;
if (! href) {
return;
}
if (href.match(/^(?:(?:mailto|javascript|data):|[a-z]+:\/\/)/)) {
event.stopPropagation();
return true;