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:
commit
44f462a65b
3 changed files with 72 additions and 15 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue