diff options
author | tdro <tdro@noreply.example.com> | 2024-02-24 18:33:47 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2024-02-24 18:33:47 -0500 |
commit | 7f22b67259215194ab21d48876f57dd29e819c0d (patch) | |
tree | d6e4295d5997d9a37398597f74ce6f727e321061 /static/js | |
parent | e8c7ffdfe80b83f54e1bee2120ed7ac8e9d308f4 (diff) | |
download | canory-7f22b67259215194ab21d48876f57dd29e819c0d.tar.gz canory-7f22b67259215194ab21d48876f57dd29e819c0d.tar.bz2 canory-7f22b67259215194ab21d48876f57dd29e819c0d.zip |
static/js/domfilter: Handle false filter in popstate
Diffstat (limited to 'static/js')
-rw-r--r-- | static/js/domfilter.ts | 2 |
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 })); }); |