mirror of
https://github.com/CamHenlin/MessagesForMacintosh.git
synced 2024-12-01 05:51:46 +00:00
12 lines
267 B
JavaScript
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
|
|
}
|