Skip to content

Commit

Permalink
fix: eventListener inutile
Browse files Browse the repository at this point in the history
  • Loading branch information
dhdaines committed Oct 9, 2024
1 parent 5fcac0e commit e24e020
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,6 @@ class App {
a.setAttribute("class", "ville");
a.href = href
a.innerText = opt.innerText;
// Don't show a document, there is no document
a.addEventListener("click", e => {
history.pushState(null, "", url);
e.preventDefault();
});
return a;
}
}
Expand Down

0 comments on commit e24e020

Please sign in to comment.