Skip to content

Commit

Permalink
Do not filter click if href of link is null
Browse files Browse the repository at this point in the history
Fixes #684
  • Loading branch information
Jaifroid committed Jan 10, 2025
1 parent 5949430 commit f0f1703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f0f1703

Please sign in to comment.