Do not filter click if href of link is null

Fixes #684
This commit is contained in:
Jaifroid 2025-01-10 14:47:27 +00:00
parent 5949430279
commit f0f17032fb

View File

@ -5344,7 +5344,7 @@ function filterClickEvent (event) {
// @TODO - may not be necessary because params.lastPageVisit is only set when HTML is loaded
} else {
var decHref = decodeURIComponent(href);
if (!/^(?:#|javascript)/i.test(decHref)) {
if (!/^(?:#|javascript|null)/i.test(decHref)) {
uiUtil.pollSpinner('Loading ' + decHref.replace(/([^/]+)$/, '$1').substring(0, 18) + '...');
// Tear down contents of previous document -- this is needed when a link in a ZIM link in an external window hasn't had
// an event listener attached. For example, links in popovers in external windows. UWP doesn't allow access to the contents