Skip to content

Commit

Permalink
chore: remove onerror event
Browse files Browse the repository at this point in the history
  • Loading branch information
yong-asial committed Jan 22, 2019
1 parent 1f3e3d8 commit 8587333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/script/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async function fetchNews() {
let piece = `
<article>
<h1><a href="${article.url}" target="_blank">${article.title}</a></h1>
<img src="${article.urlToImage}" onerror="this.src='/images/no-image-icon.png'" width="100px" height="100px" />
<img src="${article.urlToImage}" width="100px" height="100px" />
<p>${article.description}</p>
</article>
`;
Expand Down

0 comments on commit 8587333

Please sign in to comment.