]> git.ardis.lu - minimal-routing/commitdiff
Delete unnecessary variable
authorArdis Lu <ardisglu@gmail.com>
Sat, 8 Oct 2022 01:48:44 +0000 (18:48 -0700)
committerArdis Lu <ardisglu@gmail.com>
Sat, 8 Oct 2022 01:48:44 +0000 (18:48 -0700)
index.html

index 5b1d9fe1c34b4be757c24e85d2c147e686752b83..11a92388483ef89e9e4c845df9c1ad5519b50b08 100644 (file)
         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);
This page took 0.034149 seconds and 4 git commands to generate.