chore: deepscan error fixed

This commit is contained in:
Snazzah 2024-05-15 20:17:56 -05:00
parent a0465feb85
commit fe9a472bed
No known key found for this signature in database
GPG Key ID: EA479766A94CEB61

View File

@ -135,7 +135,7 @@ export function cleanHTML(html) {
clean = clean.replace(/\n/g, ''); clean = clean.replace(/\n/g, '');
return clean return clean
} }
export async function getRedirectingURL(url) { export function getRedirectingURL(url) {
return fetch(url, { redirect: 'manual' }).then((r) => { return fetch(url, { redirect: 'manual' }).then((r) => {
if ([301, 302, 303].includes(r.status) && r.headers.has('location')) if ([301, 302, 303].includes(r.status) && r.headers.has('location'))
return r.headers.get('location'); return r.headers.get('location');