0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-06 22:10:10 -05:00

[ci] format

This commit is contained in:
Arsh 2024-01-12 20:35:23 +00:00 committed by astrobot-houston
parent 35d54b3ddb
commit c7dbb9d5c0

View file

@ -54,7 +54,7 @@ const { fallback = 'animate' } = Astro.props;
document.addEventListener('click', (ev) => {
let link = ev.target;
if (ev.composed) {
link = ev.composedPath()[0];
link = ev.composedPath()[0];
}
if (link instanceof Element) {
link = link.closest('a, area');