fd
This commit is contained in:
parent
831c693bb0
commit
ae6806cb30
1 changed files with 1 additions and 1 deletions
|
@ -162,9 +162,9 @@ async function getGif(searchTerm) {
|
||||||
|
|
||||||
let response = await fetch("/giphy?searchTerm=" + searchTerm + "&limit=48");
|
let response = await fetch("/giphy?searchTerm=" + searchTerm + "&limit=48");
|
||||||
let data = await response.json()
|
let data = await response.json()
|
||||||
console.log(data)
|
|
||||||
var max = data.length - 1 //length of response, minus 1 (cuz array starts at index 0)
|
var max = data.length - 1 //length of response, minus 1 (cuz array starts at index 0)
|
||||||
data = data.data
|
data = data.data
|
||||||
|
console.log(data)
|
||||||
// GIF array
|
// GIF array
|
||||||
var gifURL = [];
|
var gifURL = [];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue