Skip to content

Commit

Permalink
fix(website): use setAttribute
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Aug 23, 2024
1 parent f71ae12 commit ec2f7e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/src/components/Hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ import Default from '@astrojs/starlight/components/Hero.astro';
setTimeout(() => {
imageElement.classList.remove('anim');
}, 300);
imageElement.src = image.src.src;
imageElement.alt = image.alt;
imageElement.setAttribute('src', image.src.src);
imageElement.setAttribute('alt', image.alt);
}

if (mainTextElement) {
Expand Down

0 comments on commit ec2f7e9

Please sign in to comment.