mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-08 19:57:46 -04:00
Don't show spinner on click if it's an anchor link
This commit is contained in:
parent
0b42107471
commit
71d92e3c7e
@ -4768,7 +4768,9 @@ var filterClickEvent = function (event) {
|
||||
// @TODO - may not be necessary because params.lastPageVisit is only set when HTML is loaded
|
||||
} else {
|
||||
var decHref = decodeURIComponent(href);
|
||||
uiUtil.pollSpinner('Loading ' + decHref.replace(/([^/]+)$/, '$1').substring(0, 18) + '...');
|
||||
if (!/^(?:#|javascript)/i.test(decHref)) {
|
||||
uiUtil.pollSpinner('Loading ' + decHref.replace(/([^/]+)$/, '$1').substring(0, 18) + '...');
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user