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.
20 lines
535 B
20 lines
535 B
2 years ago
|
/*globals self, window */
|
||
|
import * as ac from "./dist/abort-controller"
|
||
|
|
||
|
/*eslint-disable @mysticatea/prettier */
|
||
|
const g =
|
||
|
typeof self !== "undefined" ? self :
|
||
|
typeof window !== "undefined" ? window :
|
||
|
typeof global !== "undefined" ? global :
|
||
|
/* otherwise */ undefined
|
||
|
/*eslint-enable @mysticatea/prettier */
|
||
|
|
||
|
if (g) {
|
||
|
if (typeof g.AbortController === "undefined") {
|
||
|
g.AbortController = ac.AbortController
|
||
|
}
|
||
|
if (typeof g.AbortSignal === "undefined") {
|
||
|
g.AbortSignal = ac.AbortSignal
|
||
|
}
|
||
|
}
|