()
| 48 | } |
| 49 | |
| 50 | async function getQuotes(){ |
| 51 | loading(); |
| 52 | const apiUrl = 'https://type.fit/api/quotes'; |
| 53 | try{ |
| 54 | const response = await fetch(apiUrl); |
| 55 | apiQuotes = await response.json(); |
| 56 | // console.log(apiQuotes) |
| 57 | newQuote(); |
| 58 | } catch (error) { |
| 59 | // alert(error) |
| 60 | // Catch Error Here |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | // Tweet Quote |
| 65 | function tweetQuote() { |