diff --git a/src/libpoketube/libpoketube-fetcher.js b/src/libpoketube/libpoketube-fetcher.js index 187e7508..32caf60d 100644 --- a/src/libpoketube/libpoketube-fetcher.js +++ b/src/libpoketube/libpoketube-fetcher.js @@ -33,8 +33,10 @@ function getJson(str) { } } - const dislike = await fetch(`${dislike_api}${video_id}`) - const engagement = getJson(dislike) + const engagement = await fetch(`${dislike_api}${video_id}`).then((res) => + res.json() + ); + const headers = {}; /*