mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-18 19:28:29 +00:00
chore: deepscan error fixed
This commit is contained in:
parent
a0465feb85
commit
fe9a472bed
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user