mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
13 lines
271 B
JavaScript
13 lines
271 B
JavaScript
|
var fetchNode = require('./node-ponyfill');
|
||
|
var 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;
|
||
|
}
|
||
|
|