diff --git a/resources/views/games/create.blade.php b/resources/views/games/create.blade.php index 3a2a506..6c18643 100644 --- a/resources/views/games/create.blade.php +++ b/resources/views/games/create.blade.php @@ -27,6 +27,9 @@ document.getElementById("genres").value = genre_names; //document.querySelector('[alt="Game Cover "]').src = game.cover_image_path; + var cover_url = game['cover']['url']; + var replaced_url = cover_url.replace("thumb", "cover_big"); + document.getElementById("cover").src = replaced_url; } @@ -123,7 +126,7 @@