mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-18 19:28:29 +00:00
chore: fix fail check
This commit is contained in:
parent
03a99ab936
commit
cb60b6ebe7
@ -10,7 +10,7 @@ const headers = {
|
||||
}
|
||||
|
||||
async function resolveUrl(url) {
|
||||
return await fetch(url, { headers })
|
||||
return fetch(url, { headers })
|
||||
.then(r => {
|
||||
if (r.headers.get('location')) {
|
||||
return decodeURIComponent(r.headers.get('location'))
|
||||
|
Loading…
Reference in New Issue
Block a user