Skip to content

Commit

Permalink
Fix download links trying to perform page transition
Browse files Browse the repository at this point in the history
  • Loading branch information
Gyanreyer committed Jun 11, 2023
1 parent ab8bd7e commit 5ebd319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/page-transition.mjs
Expand Up @@ -239,7 +239,7 @@
/** @type {HTMLAnchorElement} */
el
) => {
if (el.download || el.target === "_blank") {
if (el.hasAttribute("download") || el.target === "_blank") {
return;
}

Expand Down

0 comments on commit 5ebd319

Please sign in to comment.