mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-23 03:37:53 +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 {
|
try {
|
||||||
const engagement = await fetch(fallbackUrl).then((res) => res.json());
|
const engagement = await fetch(apiUrl).then((res) => res.json());
|
||||||
return engagement;
|
return engagement;
|
||||||
} catch {
|
} catch {
|
||||||
try {
|
try
|
||||||
const engagement = await fetch(apiUrl).then((res) => res.json());
|
const engagement = await fetch(fallbackUrl).then((res) => res.json());
|
||||||
return engagement;
|
return engagement;
|
||||||
} catch {
|
} catch {
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in a new issue