From 349850ff41b0056daf2237b27a61b706dfdc44af Mon Sep 17 00:00:00 2001 From: Nikolay Tsonev Date: Tue, 7 Aug 2018 11:59:37 +0300 Subject: [PATCH] fix: enable reportProgress property for NativeScirpt Angular's HTTPClient (#6154) --- tns-core-modules/xhr/xhr.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tns-core-modules/xhr/xhr.ts b/tns-core-modules/xhr/xhr.ts index 2f03fd953..a8df0c2cf 100644 --- a/tns-core-modules/xhr/xhr.ts +++ b/tns-core-modules/xhr/xhr.ts @@ -165,7 +165,7 @@ export class XMLHttpRequest { private _listeners: Map> = new Map>(); 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); }