|
|
@@ -259,9 +259,7 @@ export class FetchClient {
|
|
|
try {
|
|
|
controller.abort() // 中断 fetch readable
|
|
|
} catch {}
|
|
|
- try {
|
|
|
- writable.abort() // 中断写入
|
|
|
- } catch {}
|
|
|
+ writable.abort().catch(() => {}) // 中断写入
|
|
|
|
|
|
window.removeEventListener('beforeunload', stopDownload)
|
|
|
}
|