mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-10 11:20:19 +00:00
14 lines
394 B
JavaScript
14 lines
394 B
JavaScript
|
/*globals self, window */
|
||
|
"use strict"
|
||
|
|
||
|
/*eslint-disable @mysticatea/prettier */
|
||
|
const { AbortController, AbortSignal } =
|
||
|
typeof self !== "undefined" ? self :
|
||
|
typeof window !== "undefined" ? window :
|
||
|
/* otherwise */ undefined
|
||
|
/*eslint-enable @mysticatea/prettier */
|
||
|
|
||
|
module.exports = AbortController
|
||
|
module.exports.AbortSignal = AbortSignal
|
||
|
module.exports.default = AbortController
|