Set async to true
This commit is contained in:
parent
83d50548dc
commit
68ac241106
@ -9,7 +9,7 @@ export function fetchWithProgress(url, options: RequestInit, onProgress: ((this:
|
|||||||
xhr.upload.addEventListener("progress", onProgress)
|
xhr.upload.addEventListener("progress", onProgress)
|
||||||
}
|
}
|
||||||
|
|
||||||
xhr.open(options.method || "GET", url)
|
xhr.open(options.method || "GET", url, true)
|
||||||
|
|
||||||
for(let k in options.headers || {}) {
|
for(let k in options.headers || {}) {
|
||||||
xhr.setRequestHeader(k, options.headers[k])
|
xhr.setRequestHeader(k, options.headers[k])
|
||||||
|
Loading…
Reference in New Issue
Block a user