mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 01:00:34 +08:00
13 lines
469 B
Diff
13 lines
469 B
Diff
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);
|