fix the propagation of links
Some checks are pending
ci/woodpecker/push/publish Pipeline is pending

This commit is contained in:
Mylloon 2024-01-19 12:20:18 +01:00
parent 465cc71e9e
commit cedb2e0e4c
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -40,7 +40,7 @@
document.querySelectorAll("main a").forEach(function (link) {
link.setAttribute("target", "_blank");
link.setAttribute("rel", "noreferrer");
link.addEventListener("click", function (event) {
link.addEventListener("mousedown", function (event) {
event.stopPropagation();
});
})