Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit 95f7b11

Browse files
committed
Merge pull request #432 from davidecantoni/patch-1
Add if else condition to prevent unspecified error on IE
2 parents 44a1b13 + 3060eb9 commit 95f7b11

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/system-fetch.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,13 @@
5050
}
5151
}
5252

53-
if (doTimeout)
53+
if (doTimeout) {
5454
setTimeout(function() {
5555
xhr.send();
5656
}, 0);
57-
58-
xhr.send(null);
57+
} else {
58+
xhr.send(null);
59+
}
5960
};
6061
}
6162
else if (typeof require != 'undefined') {

0 commit comments

Comments
 (0)