mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Merge pull request #8362 from NativeScript/niliev/xhr
fix: XHR readystatechange event
This commit is contained in:
@@ -177,7 +177,7 @@ export class XMLHttpRequest {
|
||||
}
|
||||
|
||||
public addEventListener(eventName: string, handler: Function) {
|
||||
if (["abort", "error", "load", "loadend", "loadstart", "progress"].indexOf(eventName) === -1) {
|
||||
if (["abort", "error", "load", "loadend", "loadstart", "progress", "readystatechange"].indexOf(eventName) === -1) {
|
||||
throw new Error("Event not supported: " + eventName);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user