browser.mjs 337 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
/*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 }