Skip to content

Commit

Permalink
Update anuncios.html
Browse files Browse the repository at this point in the history
Signed-off-by: Grouvex <168425996+Grouvex@users.noreply.github.com>
  • Loading branch information
Grouvex authored Feb 22, 2025
1 parent 75004f6 commit da0d81a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anuncios.html
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@
a.textContent = anuncio.titulo;
a.addEventListener('click', (e) => {
e.preventDefault();
const elementoAnuncio = document.getElementById(anuncio-${sanitizeHTML(anuncio.id)});
const elementoAnuncio = document.getElementById(`anuncio-${sanitizeHTML(anuncio.id)}`);
if (elementoAnuncio) {
elementoAnuncio.scrollIntoView({ behavior: 'smooth', block: 'start' });
}
Expand Down

0 comments on commit da0d81a

Please sign in to comment.