mirror of
https://codeberg.org/ashley/poke
synced 2026-03-03 12:53:44 +00:00
this is definitely one of the commits ever
This commit is contained in:
@@ -46,7 +46,7 @@ const getEngagementData = async (videoId) => {
|
||||
|
||||
try {
|
||||
const engagement = await fetch(apiUrl).then((res) => res.json());
|
||||
return engagement;
|
||||
return engagement.data;
|
||||
} catch {
|
||||
try {
|
||||
const engagement = await fetch(fallbackUrl).then((res) => res.json());
|
||||
|
||||
Reference in New Issue
Block a user