mirror of
https://github.com/JasonYANG170/IOTConnect-Web.git
synced 2024-11-23 20:26:28 +00:00
12 lines
337 B
JavaScript
12 lines
337 B
JavaScript
|
/*globals self, window */
|
||
|
|
||
|
/*eslint-disable @mysticatea/prettier */
|
||
|
const { AbortController, AbortSignal } =
|
||
|
typeof self !== "undefined" ? self :
|
||
|
typeof window !== "undefined" ? window :
|
||
|
/* otherwise */ undefined
|
||
|
/*eslint-enable @mysticatea/prettier */
|
||
|
|
||
|
export default AbortController
|
||
|
export { AbortController, AbortSignal }
|