mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-24 19:58:42 +01:00
fix ryd
This commit is contained in:
parent
4922f61d81
commit
4ba022fba8
1 changed files with 3 additions and 3 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());
|
||||
try
|
||||
const engagement = await fetch(fallbackUrl).then((res) => res.json());
|
||||
return engagement;
|
||||
} catch {
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue