We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 66e62ad + b373e8b commit bfff330Copy full SHA for bfff330
src/index.js
@@ -236,7 +236,7 @@ export default (function create(/** @type {Options} */ defaults) {
236
* @public
237
* @type {AbortController}
238
*/
239
- redaxios.CancelToken = /** @type {any} */ (self).AbortController || Object;
+ redaxios.CancelToken = /** @type {any} */ (typeof AbortController === 'function' ? AbortController : Object);
240
241
/**
242
0 commit comments