1 | import AbortController, {AbortSignal} from './abortcontroller';
|
2 | import {polyfillNeeded} from './utils';
|
3 |
|
4 | (function(self) {
|
5 | ;
|
6 |
|
7 | if (!polyfillNeeded(self)) {
|
8 | return;
|
9 | }
|
10 |
|
11 | self.AbortController = AbortController;
|
12 | self.AbortSignal = AbortSignal;
|
13 |
|
14 | })(typeof self !== 'undefined' ? self : global);
|