This commit is contained in:
Ashley 2023-11-22 04:54:25 +00:00
parent 4922f61d81
commit 4ba022fba8

View file

@ -48,11 +48,11 @@ class PokeTubeDislikesAPIManager {
try {
const engagement = await fetch(fallbackUrl).then((res) => res.json());
const engagement = await fetch(apiUrl).then((res) => res.json());
return engagement;
} catch {
try {
const engagement = await fetch(apiUrl).then((res) => res.json());
try
const engagement = await fetch(fallbackUrl).then((res) => res.json());
return engagement;
} catch {
return null;