Current section
Files
Jump to
Current section
Files
priv/js/node_modules/cross-fetch/dist/node-polyfill.js
const fetchNode = require('./node-ponyfill')
const fetch = fetchNode.fetch.bind({})
fetch.polyfill = true
if (!global.fetch) {
global.fetch = fetch
global.Response = fetchNode.Response
global.Headers = fetchNode.Headers
global.Request = fetchNode.Request
}