Compare commits
No commits in common. "add-timeout" and "master" have entirely different histories.
add-timeou
...
master
@ -55,7 +55,6 @@ async function fetchFile({ url, name, getProgress, id, retryAttempt = 0 }) {
|
|||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/x-www-form-urlencoded'
|
'Content-Type': 'application/x-www-form-urlencoded'
|
||||||
},
|
},
|
||||||
timeout: 10_000,
|
|
||||||
onDownloadProgress: (progressEvent) => {
|
onDownloadProgress: (progressEvent) => {
|
||||||
if (typeof getProgress === 'function') {
|
if (typeof getProgress === 'function') {
|
||||||
const progress = Math.round((progressEvent.loaded * 100) / 9626311)
|
const progress = Math.round((progressEvent.loaded * 100) / 9626311)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user