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
|
Rev | Line | |
---|
[d24f17c] | 1 | import { fetch, Headers, Request, Response, FormData, File, Blob } from './fetch-ponyfill.browser.js';
|
---|
| 2 | if (typeof globalThis.fetch === 'undefined') {
|
---|
| 3 | globalThis.fetch = fetch;
|
---|
| 4 | }
|
---|
| 5 | if (typeof globalThis.Headers === 'undefined') {
|
---|
| 6 | globalThis.Headers = Headers;
|
---|
| 7 | }
|
---|
| 8 | if (typeof globalThis.Request === 'undefined') {
|
---|
| 9 | globalThis.Request = Request;
|
---|
| 10 | }
|
---|
| 11 | if (typeof globalThis.Response === 'undefined') {
|
---|
| 12 | globalThis.Response = Response;
|
---|
| 13 | }
|
---|
| 14 | if (typeof globalThis.FormData === 'undefined') {
|
---|
| 15 | globalThis.FormData = FormData;
|
---|
| 16 | }
|
---|
| 17 | if (typeof globalThis.File === 'undefined') {
|
---|
| 18 | globalThis.File = File;
|
---|
| 19 | }
|
---|
| 20 | if (typeof globalThis.Blob === 'undefined') {
|
---|
| 21 | globalThis.Blob = Blob;
|
---|
| 22 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.