fix iso-elements

This commit is contained in:
Seth Trowbridge 2023-07-17 05:16:16 -04:00
parent b038cecb08
commit 3fed5dfdba

View File

@ -199,13 +199,12 @@ export const Router = {
});
document.addEventListener("click", e=>
{
const t = e.target as HTMLAnchorElement;
const path = e.composedPath() as HTMLAnchorElement[];
for(let i=0; i<path.length; i++)
{
if(path[i].href)
{
const u = new URL(t.href);
const u = new URL(path[i].href);
if(u.origin == document.location.origin)
{
e.preventDefault();