mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Perf: improve reject build
This commit is contained in:
@@ -82,7 +82,10 @@ function createFetchRetry($fetch: typeof fetch): typeof fetch {
|
||||
}
|
||||
} catch (err: unknown) {
|
||||
if (err instanceof Error) {
|
||||
if (err.name === 'AbortError') {
|
||||
if (
|
||||
err.name === 'AbortError'
|
||||
|| ('digest' in err && err.digest === 'AbortError')
|
||||
) {
|
||||
console.log('[fetch abort]', url.toString());
|
||||
return bail(err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user