mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-18 03:08:30 +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, '');
|
||||
return clean
|
||||
}
|
||||
export async function getRedirectingURL(url) {
|
||||
export function getRedirectingURL(url) {
|
||||
return fetch(url, { redirect: 'manual' }).then((r) => {
|
||||
if ([301, 302, 303].includes(r.status) && r.headers.has('location'))
|
||||
return r.headers.get('location');
|
||||
|
Loading…
Reference in New Issue
Block a user