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

Commit 3060eb9

Browse files
committed
Add if else condition
This if else condition prevent's the following error in IE: ``` SCRIPT16389: Unspecified error. ```
1 parent cd1bbe9 commit 3060eb9

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)