Skip to content

Commit

Permalink
feat: update download timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
kuoruan committed Jan 23, 2024
1 parent 20ccd2b commit 2ff924c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/TorrentDownloadItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default {
GM_xmlhttpRequest({
method: "GET",
url: pageLink,
timeout: 5000,
timeout: 15000,
context: { pageTitle },
ontimeout: () => {
reject(new Error("下载超时,请重试!"));
Expand Down Expand Up @@ -85,7 +85,7 @@ export default {
method: "GET",
url: torrentUrl,
responseType: "blob",
timeout: 5000,
timeout: 15000,
ontimeout: () => {
reject(new Error("下载超时,请重试!"));
},
Expand Down

0 comments on commit 2ff924c

Please sign in to comment.