1 | /*globals require, self, window */
|
2 |
|
3 |
|
4 | const ac = require("./dist/abort-controller")
|
5 |
|
6 | /*eslint-disable @mysticatea/prettier */
|
7 | const g =
|
8 | typeof self !== "undefined" ? self :
|
9 | typeof window !== "undefined" ? window :
|
10 | typeof global !== "undefined" ? global :
|
11 | /* otherwise */ undefined
|
12 | /*eslint-enable @mysticatea/prettier */
|
13 |
|
14 | if (g) {
|
15 | if (typeof g.AbortController === "undefined") {
|
16 | g.AbortController = ac.AbortController
|
17 | }
|
18 | if (typeof g.AbortSignal === "undefined") {
|
19 | g.AbortSignal = ac.AbortSignal
|
20 | }
|
21 | }
|