Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 3b4c20b

Browse files
jahtalabmhevery
authored andcommitted
fix(browser): use XMLHttpRequest.DONE constant on target instead of the global interface (#395)
fixes #394
1 parent 2d4ff65 commit 3b4c20b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/browser/browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function patchXHR(window: any) {
5555
function scheduleTask(task: Task) {
5656
var data = <XHROptions>task.data;
5757
data.target.addEventListener('readystatechange', () => {
58-
if (data.target.readyState === XMLHttpRequest.DONE) {
58+
if (data.target.readyState === data.target.DONE) {
5959
if (!data.aborted) {
6060
task.invoke();
6161
}

0 commit comments

Comments
 (0)