Simplify getCoverURL then

This commit is contained in:
baz 2023-12-16 20:37:09 +00:00
parent 68ad62dcba
commit 3fe6b11765
1 changed files with 1 additions and 3 deletions

View File

@ -17,9 +17,7 @@ async function getCoverURL(id) {
url = 'https:'.concat(response[0].url); url = 'https:'.concat(response[0].url);
} }
}) })
.then(response => { .then(url = url.replace('t_thumb', 't_1080p_2x'))
url = url.replace('t_thumb', 't_1080p_2x');
})
.catch(err => { .catch(err => {
console.error(err); console.error(err);
}); });