From 90578a154eb94845a9feddb7ecd235da77b037a5 Mon Sep 17 00:00:00 2001 From: Florian Sylvain Date: Fri, 28 Jan 2022 21:12:43 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=20addState=20->=20replace?= =?UTF-8?q?State?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/script.js b/script.js index dab7178..8de278b 100644 --- a/script.js +++ b/script.js @@ -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); } }