From eeebb436c54db76cd53acf8f46d60e5ab50bd094 Mon Sep 17 00:00:00 2001 From: Ashley Date: Mon, 27 Nov 2023 06:22:39 +0000 Subject: [PATCH] Update src/libpoketube/libpoketube-dislikes.js --- src/libpoketube/libpoketube-dislikes.js | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/libpoketube/libpoketube-dislikes.js b/src/libpoketube/libpoketube-dislikes.js index 160810c2..fd3bd152 100644 --- a/src/libpoketube/libpoketube-dislikes.js +++ b/src/libpoketube/libpoketube-dislikes.js @@ -46,18 +46,9 @@ 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 }