1 | /*globals self, window */
|
2 |
|
3 |
|
4 | /*eslint-disable @mysticatea/prettier */
|
5 | const { AbortController, AbortSignal } =
|
6 | typeof self !== "undefined" ? self :
|
7 | typeof window !== "undefined" ? window :
|
8 | /* otherwise */ undefined
|
9 | /*eslint-enable @mysticatea/prettier */
|
10 |
|
11 | module.exports = AbortController
|
12 | module.exports.AbortSignal = AbortSignal
|
13 | module.exports.default = AbortController
|