main
Last change
on this file since 65b6638 was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
479 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | 'use strict'
|
---|
| 2 |
|
---|
| 3 | const _global =
|
---|
| 4 | typeof self !== 'undefined'
|
---|
| 5 | ? self
|
---|
| 6 | : typeof window !== 'undefined'
|
---|
| 7 | ? window
|
---|
| 8 | : /* otherwise */ undefined
|
---|
| 9 |
|
---|
| 10 | if (!_global) {
|
---|
| 11 | throw new Error(
|
---|
| 12 | `Unable to find global scope. Are you sure this is running in the browser?`
|
---|
| 13 | )
|
---|
| 14 | }
|
---|
| 15 |
|
---|
| 16 | if (!_global.AbortController) {
|
---|
| 17 | throw new Error(
|
---|
| 18 | `Could not find "AbortController" in the global scope. You need to polyfill it first`
|
---|
| 19 | )
|
---|
| 20 | }
|
---|
| 21 |
|
---|
| 22 | module.exports.AbortController = _global.AbortController |
---|
Note:
See
TracBrowser
for help on using the repository browser.