mirror of
https://github.com/Floriansylvain/portfolio.git
synced 2026-08-19 11:43:20 +02:00
🚑️ addState -> replaceState
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user