Merge pull request #54 from OmarAshraf-Bombo/patch-1

Fixed Image Source Link.
This commit is contained in:
Brad Traversy 2021-07-31 10:31:23 -04:00 committed by GitHub
commit 9887a70fdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,7 @@ const createPokemonCard = (pokemon) => {
const pokemonInnerHTML = ` const pokemonInnerHTML = `
<div class="img-container"> <div class="img-container">
<img src="https://pokeres.bastionbot.org/images/pokemon/${pokemon.id}.png" alt=""> <img src="https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/${pokemon.id}.png"" alt="${name}">
</div> </div>
<div class="info"> <div class="info">
<span class="number">#${id}</span> <span class="number">#${id}</span>