source: node_modules/swagger-client/lib/helpers/fetch-polyfill.browser.js

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

Initial commit

  • Property mode set to 100644
File size: 799 bytes
Line 
1"use strict";
2
3var _fetchPonyfillBrowser = require("./fetch-ponyfill.browser.js");
4if (typeof globalThis.fetch === 'undefined') {
5 globalThis.fetch = _fetchPonyfillBrowser.fetch;
6}
7if (typeof globalThis.Headers === 'undefined') {
8 globalThis.Headers = _fetchPonyfillBrowser.Headers;
9}
10if (typeof globalThis.Request === 'undefined') {
11 globalThis.Request = _fetchPonyfillBrowser.Request;
12}
13if (typeof globalThis.Response === 'undefined') {
14 globalThis.Response = _fetchPonyfillBrowser.Response;
15}
16if (typeof globalThis.FormData === 'undefined') {
17 globalThis.FormData = _fetchPonyfillBrowser.FormData;
18}
19if (typeof globalThis.File === 'undefined') {
20 globalThis.File = _fetchPonyfillBrowser.File;
21}
22if (typeof globalThis.Blob === 'undefined') {
23 globalThis.Blob = _fetchPonyfillBrowser.Blob;
24}
Note: See TracBrowser for help on using the repository browser.