Skip to content

Commit

Permalink
Merge pull request #2 from robinpowered/bugfix/self-undeclared
Browse files Browse the repository at this point in the history
Bugfix - Undeclared `self` reference
  • Loading branch information
christophermark authored Mar 20, 2017
2 parents 8f0f1c5 + 1dd3f7c commit 464da42
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions fetch-polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

// Polyfill from https://github.com/github/fetch/blob/v1.1.1/fetch.js#L8-L21
var support = {
searchParams: 'URLSearchParams' in self,
iterable: 'Symbol' in self && 'iterator' in Symbol,
blob: 'FileReader' in self && 'Blob' in self && (function() {
searchParams: 'URLSearchParams' in this,
iterable: 'Symbol' in this && 'iterator' in Symbol,
blob: 'FileReader' in this && 'Blob' in this && (function() {
try {
new Blob()
return true
} catch(e) {
return false
}
})(),
formData: 'FormData' in self,
arrayBuffer: 'ArrayBuffer' in self
formData: 'FormData' in this,
arrayBuffer: 'ArrayBuffer' in this
}

// Polyfill from https://github.com/github/fetch/blob/v1.1.1/fetch.js#L364-L375
Expand Down

0 comments on commit 464da42

Please sign in to comment.