fix: enable reportProgress property for NativeScirpt Angular's HTTPClient (#6154)

This commit is contained in:
Nikolay Tsonev
2018-08-07 11:59:37 +03:00
committed by vakrilov
parent 284cd548da
commit 349850ff41

View File

@@ -165,7 +165,7 @@ export class XMLHttpRequest {
private _listeners: Map<string, Array<Function>> = new Map<string, Array<Function>>();
public addEventListener(eventName: string, handler: Function) {
if (eventName !== "load" && eventName !== "error") {
if (eventName !== "load" && eventName !== "error" && eventName !== "progress") {
throw new Error("Event not supported: " + eventName);
}