Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
fix: return api response (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalhydra authored and jmolivas committed Dec 13, 2018
1 parent 4506924 commit f5e0b4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const getBloquequote = async (url) => {
const apiUrl = `https://publish.twitter.com/oembed?url=${url}`;

const response = await fetch(apiUrl);
const json = await response.json();
return await response.json();
} catch (error) {
console.log(error);
}
Expand Down

0 comments on commit f5e0b4d

Please sign in to comment.