Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
pateskinasy committed Jul 16, 2019
1 parent b48280e commit 50aa70c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let quotes;
//asynchronous function that gets data from the API and populates the quotes array
const makeRequest = async () => {
// const responseJSON = await fetch('https://my-json-server.typicode.com/morsewall/random-quotes-vanillajs-rest-api/quotes');
const responseJSON = await fetch('http://api.forismatic.com/api/1.0/?method=getQuote&lang=en&format=jsonp&jsonp=?')
const responseJSON = await fetch('https://api.forismatic.com/api/1.0/?method=getQuote&lang=en&format=jsonp&jsonp=?')
quotes = await responseJSON.json();
}

Expand Down

0 comments on commit 50aa70c

Please sign in to comment.