chore: minor fix

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

View File

@ -9,7 +9,7 @@ const headers = {
'Sec-Fetch-Site': 'none', 'Sec-Fetch-Site': 'none',
} }
async function resolveUrl(url) { function resolveUrl(url) {
return fetch(url, { headers }) return fetch(url, { headers })
.then(r => { .then(r => {
if (r.headers.get('location')) { if (r.headers.get('location')) {