aboutsummaryrefslogtreecommitdiff
path: root/static
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 /static
parente8c7ffdfe80b83f54e1bee2120ed7ac8e9d308f4 (diff)
downloadcanory-7f22b67259215194ab21d48876f57dd29e819c0d.tar.gz
canory-7f22b67259215194ab21d48876f57dd29e819c0d.tar.bz2
canory-7f22b67259215194ab21d48876f57dd29e819c0d.zip
static/js/domfilter: Handle false filter in popstate
Diffstat (limited to 'static')
-rw-r--r--static/js/domfilter.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/static/js/domfilter.ts b/static/js/domfilter.ts
index a33faca..8900e2f 100644
--- a/static/js/domfilter.ts
+++ b/static/js/domfilter.ts
@@ -96,7 +96,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 }));
});