🚑️ addState -> replaceState

This commit is contained in:
Florian Sylvain
2022-01-28 21:12:43 +01:00
parent e249e7158f
commit 90578a154e
+1 -2
View File
@@ -66,8 +66,7 @@ function updateUrl() {
if (elements[index] && !window.location.href.includes(elements[index].id)) {
const hash = 'index.html#' + elements[index].id;
console.log("pouet");
window.history.pushState(null, null, hash);
window.history.replaceState(null, null, hash);
}
}