source: node_modules/swagger-client/es/helpers/fetch-polyfill.browser.js@ d24f17c

main
Last change on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 665 bytes
RevLine 
[d24f17c]1import { fetch, Headers, Request, Response, FormData, File, Blob } from './fetch-ponyfill.browser.js';
2if (typeof globalThis.fetch === 'undefined') {
3 globalThis.fetch = fetch;
4}
5if (typeof globalThis.Headers === 'undefined') {
6 globalThis.Headers = Headers;
7}
8if (typeof globalThis.Request === 'undefined') {
9 globalThis.Request = Request;
10}
11if (typeof globalThis.Response === 'undefined') {
12 globalThis.Response = Response;
13}
14if (typeof globalThis.FormData === 'undefined') {
15 globalThis.FormData = FormData;
16}
17if (typeof globalThis.File === 'undefined') {
18 globalThis.File = File;
19}
20if (typeof globalThis.Blob === 'undefined') {
21 globalThis.Blob = Blob;
22}
Note: See TracBrowser for help on using the repository browser.