Override current state rather than creating new ones
This commit is contained in:
parent
9360f1e34f
commit
424d30998d
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue