Update src/libpoketube/libpoketube-dislikes.js

This commit is contained in:
Ashley 2023-11-27 06:22:39 +00:00
parent 36d0b26b0c
commit eeebb436c5

View file

@ -47,17 +47,8 @@ class PokeTubeDislikesAPIManager {
const { fetch } = await import("undici");
try {
const engagement = await fetch(apiUrl).then((res) => res.json());
return engagement;
} catch {
try {
const engagement = await fetch(fallbackUrl).then((res) => res.json());
return engagement;
} catch {
return null;
}
}
return engagement
}