fds
This commit is contained in:
parent
1092a66f54
commit
c0486481c9
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ function getGif(searchTerm) {
|
|||
|
||||
cancelBtn.innerHTML = '<button class="btn btn-link pl-3 pr-0" id="gifs-cancel-btn" onclick="getGif();"><i class="fas fa-times text-muted"></i></button>';
|
||||
|
||||
var response = fetch("/giphy?searchTerm=" + searchTerm + "&limit=48")
|
||||
var response = await fetch("/giphy?searchTerm=" + searchTerm + "&limit=48")
|
||||
console.log(response)
|
||||
var max = response.data.length - 1 //length of response, minus 1 (cuz array starts at index 0)
|
||||
// GIF array
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue