mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Make reject filter download abortable
This commit is contained in:
13
patches/@vercel__fetch-retry@5.1.3.patch
Normal file
13
patches/@vercel__fetch-retry@5.1.3.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/index.js b/index.js
|
||||
index e5eeb353f6da8968d926cb4e502207912b6c3594..eb1370dc19030404e3def46ce13938d34a9e6214 100644
|
||||
--- a/index.js
|
||||
+++ b/index.js
|
||||
@@ -66,7 +66,7 @@ function setup(fetch) {
|
||||
return res;
|
||||
}
|
||||
} catch (err) {
|
||||
- if (err.type === 'aborted') {
|
||||
+ if (err.type === 'aborted' || err.name === 'AbortError') {
|
||||
return bail(err);
|
||||
}
|
||||
const clientError = isClientError(err);
|
||||
Reference in New Issue
Block a user