aboutsummaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2024-02-24 18:33:47 -0500
committertdro <tdro@noreply.example.com>2024-02-24 18:33:47 -0500
commit7f22b67259215194ab21d48876f57dd29e819c0d (patch)
treed6e4295d5997d9a37398597f74ce6f727e321061 /assets
parente8c7ffdfe80b83f54e1bee2120ed7ac8e9d308f4 (diff)
downloadcanory-7f22b67259215194ab21d48876f57dd29e819c0d.tar.gz
canory-7f22b67259215194ab21d48876f57dd29e819c0d.tar.bz2
canory-7f22b67259215194ab21d48876f57dd29e819c0d.zip
static/js/domfilter: Handle false filter in popstate
Diffstat (limited to 'assets')
-rw-r--r--assets/js/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/js/index.js b/assets/js/index.js
index 55a9bf2..e1526d8 100644
--- a/assets/js/index.js
+++ b/assets/js/index.js
@@ -855,7 +855,7 @@
const hashed = link.pathname === url.pathname;
if (hashed) return;
fetch(url, "GET", function(http) {
- filter(url.href, http);
+ if (filter(url, http) === false) return self.location.href = url;
persist();
self.document.dispatchEvent(new CustomEvent("URLChangedCustomEvent", {
bubbles: true