1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2025-06-13 10:33:02 -04:00

Merge branch 'main' into main

This commit is contained in:
Korbs 2023-11-23 03:54:53 +00:00
commit 44f462a65b
3 changed files with 72 additions and 15 deletions

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());
const engagement = await fetch(fallbackUrl).then((res) => res.json());
return engagement;
} catch {
return null;