This commit is contained in:
Aevann1 2021-09-24 01:02:10 +02:00
parent 831c693bb0
commit ae6806cb30

View file

@ -162,9 +162,9 @@ async function getGif(searchTerm) {
let response = await fetch("/giphy?searchTerm=" + searchTerm + "&limit=48");
let data = await response.json()
console.log(data)
var max = data.length - 1 //length of response, minus 1 (cuz array starts at index 0)
data = data.data
console.log(data)
// GIF array
var gifURL = [];