From: Ardis Lu Date: Sat, 8 Oct 2022 01:48:44 +0000 (-0700) Subject: Delete unnecessary variable X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=d3b02db6c10b67efadd243aa325241e113aa94a8;p=minimal-routing Delete unnecessary variable --- diff --git a/index.html b/index.html index 5b1d9fe..11a9238 100644 --- a/index.html +++ b/index.html @@ -151,8 +151,7 @@ return; } - const base = new URL(`${window.location.origin}`); - const url = new URL(path, base); + const url = new URL(path, window.location.origin); window.history.pushState({}, '', url); showPage(path);