Set async to true

This commit is contained in:
Eduard Urbach 2018-04-17 13:35:17 +02:00
parent 83d50548dc
commit 68ac241106

View File

@ -9,7 +9,7 @@ export function fetchWithProgress(url, options: RequestInit, onProgress: ((this:
xhr.upload.addEventListener("progress", onProgress)
}
xhr.open(options.method || "GET", url)
xhr.open(options.method || "GET", url, true)
for(let k in options.headers || {}) {
xhr.setRequestHeader(k, options.headers[k])