Fix bug for <a> without href

This commit is contained in:
cuom1999 2023-09-26 13:05:00 -05:00
parent 7d517e1a7d
commit c535ae4415

View file

@ -387,7 +387,7 @@ function onWindowReady() {
}); });
$('a').click(function() { $('a').click(function() {
var href = $(this).attr('href'); var href = $(this).attr('href');
if (href === '#' || href.startsWith("javascript")) { if (!href || href === '#' || href.startsWith("javascript")) {
return; return;
} }