mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix: enable reportProgress property for NativeScirpt Angular's HTTPClient (#6154)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user