Skip to content

Commit 349850f

Browse files
tsonevnvakrilov
authored andcommitted
fix: enable reportProgress property for NativeScirpt Angular's HTTPClient (#6154)
1 parent 284cd54 commit 349850f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tns-core-modules/xhr/xhr.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export class XMLHttpRequest {
165165
private _listeners: Map<string, Array<Function>> = new Map<string, Array<Function>>();
166166

167167
public addEventListener(eventName: string, handler: Function) {
168-
if (eventName !== "load" && eventName !== "error") {
168+
if (eventName !== "load" && eventName !== "error" && eventName !== "progress") {
169169
throw new Error("Event not supported: " + eventName);
170170
}
171171

0 commit comments

Comments
 (0)