Initialisation
Added the packages and files for the backend server
This commit is contained in:
22
node_modules/node-abort-controller/browser.js
generated
vendored
Normal file
22
node_modules/node-abort-controller/browser.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
'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
|
||||
Reference in New Issue
Block a user