Skip to content

Commit

Permalink
Inline IE9 bogus status check.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgraham committed Nov 13, 2014
1 parent 7ac990f commit dad14bf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions fetch.js
Original file line number Diff line number Diff line change
@@ -160,10 +160,7 @@
var xhr = new XMLHttpRequest()

xhr.onload = function() {
var status = xhr.status
if (status === 1223) {
status = 204
}
var status = (xhr.status === 1223) ? 204 : xhr.status
if (status < 100 || status > 599) {
reject()
return

0 comments on commit dad14bf

Please sign in to comment.