fix iso-elements
This commit is contained in:
parent
b038cecb08
commit
3fed5dfdba
@ -199,13 +199,12 @@ export const Router = {
|
|||||||
});
|
});
|
||||||
document.addEventListener("click", e=>
|
document.addEventListener("click", e=>
|
||||||
{
|
{
|
||||||
const t = e.target as HTMLAnchorElement;
|
|
||||||
const path = e.composedPath() as HTMLAnchorElement[];
|
const path = e.composedPath() as HTMLAnchorElement[];
|
||||||
for(let i=0; i<path.length; i++)
|
for(let i=0; i<path.length; i++)
|
||||||
{
|
{
|
||||||
if(path[i].href)
|
if(path[i].href)
|
||||||
{
|
{
|
||||||
const u = new URL(t.href);
|
const u = new URL(path[i].href);
|
||||||
if(u.origin == document.location.origin)
|
if(u.origin == document.location.origin)
|
||||||
{
|
{
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
Loading…
Reference in New Issue
Block a user