1
Fork 0

Override current state rather than creating new ones

This commit is contained in:
Jake Howard 2022-01-03 14:18:23 +00:00
parent 9360f1e34f
commit 424d30998d
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -23,7 +23,7 @@ function scrollTo(offset) {
function resetHash() { function resetHash() {
// Clear URL hash, without reloading the page - https://stackoverflow.com/a/15323220 // Clear URL hash, without reloading the page - https://stackoverflow.com/a/15323220
window.history.pushState('', document.title, window.location.pathname); window.history.replaceState(null, document.title, window.location.pathname);
} }
$(document).ready(function() { $(document).ready(function() {