mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-17 05:54:42 -05:00
this is definitely one of the commits ever
This commit is contained in:
parent
e613d8a742
commit
d3206151e3
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ const getEngagementData = async (videoId) => {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const engagement = await fetch(apiUrl).then((res) => res.json());
|
const engagement = await fetch(apiUrl).then((res) => res.json());
|
||||||
return engagement;
|
return engagement.data;
|
||||||
} catch {
|
} catch {
|
||||||
try {
|
try {
|
||||||
const engagement = await fetch(fallbackUrl).then((res) => res.json());
|
const engagement = await fetch(fallbackUrl).then((res) => res.json());
|
||||||
|
|
Loading…
Reference in a new issue