Files
2025-12-17 17:55:13 +01:00

12 lines
267 B
JavaScript

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
}