From 2f7c4b8ab7e84806c3c9315e3ac3d6db3472ae8d Mon Sep 17 00:00:00 2001 From: Nikolay Tsonev Date: Tue, 7 Aug 2018 11:59:37 +0300 Subject: [PATCH] enabling 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); }