diff --git a/src/modules/sub/utils.js b/src/modules/sub/utils.js index 4f4fe529..0e5f72f8 100644 --- a/src/modules/sub/utils.js +++ b/src/modules/sub/utils.js @@ -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');