source: node_modules/node-abort-controller/browser.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 479 bytes
Line 
1'use strict'
2
3const _global =
4 typeof self !== 'undefined'
5 ? self
6 : typeof window !== 'undefined'
7 ? window
8 : /* otherwise */ undefined
9
10if (!_global) {
11 throw new Error(
12 `Unable to find global scope. Are you sure this is running in the browser?`
13 )
14}
15
16if (!_global.AbortController) {
17 throw new Error(
18 `Could not find "AbortController" in the global scope. You need to polyfill it first`
19 )
20}
21
22module.exports.AbortController = _global.AbortController
Note: See TracBrowser for help on using the repository browser.