Simplify getCoverURL then
This commit is contained in:
parent
68ad62dcba
commit
3fe6b11765
|
@ -17,9 +17,7 @@ async function getCoverURL(id) {
|
|||
url = 'https:'.concat(response[0].url);
|
||||
}
|
||||
})
|
||||
.then(response => {
|
||||
url = url.replace('t_thumb', 't_1080p_2x');
|
||||
})
|
||||
.then(url = url.replace('t_thumb', 't_1080p_2x'))
|
||||
.catch(err => {
|
||||
console.error(err);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue