You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

22 lines
479 B

'use strict'
const _global =
typeof self !== 'undefined'
? self
: typeof window !== 'undefined'
? window
: /* otherwise */ undefined
if (!_global) {
throw new Error(
`Unable to find global scope. Are you sure this is running in the browser?`
)
}
if (!_global.AbortController) {
throw new Error(
`Could not find "AbortController" in the global scope. You need to polyfill it first`
)
}
module.exports.AbortController = _global.AbortController