Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
Co-authored-by: Michaël Zasso <[email protected]>
  • Loading branch information
mcollina and targos authored May 4, 2022
1 parent 9374fdd commit a2541ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ if (nodeMajor > 16 || (nodeMajor === 16 && nodeMinor >= 5)) {
if (!fetchImpl) {
fetchImpl = require('./lib/fetch')
}
const dispatcher = arguments[1]?.dispatcher || getGlobalDispatcher()
const dispatcher = (arguments[1] && arguments[1].dispatcher) || getGlobalDispatcher()
return fetchImpl.apply(dispatcher, arguments)
}
module.exports.Headers = require('./lib/fetch/headers').Headers
Expand Down

0 comments on commit a2541ee

Please sign in to comment.