fix XHR upload progress
Some checks failed
Nicolium CI / Test and upload artifacts (22.x) (push) Has been cancelled
Nicolium CI / release (push) Has been cancelled
Nicolium CI / deploy (push) Has been cancelled
pl-api CI / Test for pl-api formatting (22.x) (push) Has been cancelled
pl-hooks CI / Test for a successful build (22.x) (push) Has been cancelled
Some checks failed
Nicolium CI / Test and upload artifacts (22.x) (push) Has been cancelled
Nicolium CI / release (push) Has been cancelled
Nicolium CI / deploy (push) Has been cancelled
pl-api CI / Test for pl-api formatting (22.x) (push) Has been cancelled
pl-hooks CI / Test for a successful build (22.x) (push) Has been cancelled
This commit is contained in:
@@ -124,7 +124,7 @@ function request<T = any>(
|
||||
return new Promise<Response<T>>((resolve, reject) => {
|
||||
const xhr = new XMLHttpRequest();
|
||||
|
||||
xhr.addEventListener('progress', onUploadProgress!);
|
||||
xhr.upload.addEventListener('progress', onUploadProgress!);
|
||||
xhr.addEventListener('loadend', () => {
|
||||
const data = xhr.response;
|
||||
let json: T = undefined!;
|
||||
|
||||
Reference in New Issue
Block a user