chore: fix fail check

This commit is contained in:
Brama Udi 2024-03-26 11:06:10 +07:00 committed by Brama Udi
parent 03a99ab936
commit cb60b6ebe7
No known key found for this signature in database
GPG Key ID: C163FBB0BB454FBD

View File

@ -10,7 +10,7 @@ const headers = {
} }
async function resolveUrl(url) { async function resolveUrl(url) {
return await fetch(url, { headers }) return fetch(url, { headers })
.then(r => { .then(r => {
if (r.headers.get('location')) { if (r.headers.get('location')) {
return decodeURIComponent(r.headers.get('location')) return decodeURIComponent(r.headers.get('location'))