diff options
author | tdro <tdro@noreply.example.com> | 2022-06-08 00:14:54 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-06-08 00:14:54 -0400 |
commit | 029b09cda1b497752ee95e76232d3d633cf68367 (patch) | |
tree | 356caada250ab4f37f2baa817dfd6cd2e2ea29cb /static | |
parent | 0576bc596a33bdb67be9cc852816fd0bab023f2a (diff) | |
download | canory-029b09cda1b497752ee95e76232d3d633cf68367.tar.gz canory-029b09cda1b497752ee95e76232d3d633cf68367.tar.bz2 canory-029b09cda1b497752ee95e76232d3d633cf68367.zip |
static/js/pager: Remove unnecessary replace state
Diffstat (limited to 'static')
-rw-r--r-- | static/js/pager.ts | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/static/js/pager.ts b/static/js/pager.ts index 88e9f83..49f3b2d 100644 --- a/static/js/pager.ts +++ b/static/js/pager.ts @@ -28,13 +28,6 @@ const currentPosition = self.pageYOffset; settings["pager"][url] = currentPosition; localStorage["settings"] = JSON.stringify(settings); - if (self.location.hash.length === 0) { - history.replaceState( - {}, - document.title, - window.location.href.split("#")[0], - ); - } }); self.addEventListener("DOMContentLoaded", function () { |