main
Last change
on this file since 65b6638 was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
799 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | "use strict";
|
---|
| 2 |
|
---|
| 3 | var _fetchPonyfillBrowser = require("./fetch-ponyfill.browser.js");
|
---|
| 4 | if (typeof globalThis.fetch === 'undefined') {
|
---|
| 5 | globalThis.fetch = _fetchPonyfillBrowser.fetch;
|
---|
| 6 | }
|
---|
| 7 | if (typeof globalThis.Headers === 'undefined') {
|
---|
| 8 | globalThis.Headers = _fetchPonyfillBrowser.Headers;
|
---|
| 9 | }
|
---|
| 10 | if (typeof globalThis.Request === 'undefined') {
|
---|
| 11 | globalThis.Request = _fetchPonyfillBrowser.Request;
|
---|
| 12 | }
|
---|
| 13 | if (typeof globalThis.Response === 'undefined') {
|
---|
| 14 | globalThis.Response = _fetchPonyfillBrowser.Response;
|
---|
| 15 | }
|
---|
| 16 | if (typeof globalThis.FormData === 'undefined') {
|
---|
| 17 | globalThis.FormData = _fetchPonyfillBrowser.FormData;
|
---|
| 18 | }
|
---|
| 19 | if (typeof globalThis.File === 'undefined') {
|
---|
| 20 | globalThis.File = _fetchPonyfillBrowser.File;
|
---|
| 21 | }
|
---|
| 22 | if (typeof globalThis.Blob === 'undefined') {
|
---|
| 23 | globalThis.Blob = _fetchPonyfillBrowser.Blob;
|
---|
| 24 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.