Skip to content

Commit bfff330

Browse files
committed
Avoid relying on self
2 parents 66e62ad + b373e8b commit bfff330

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ export default (function create(/** @type {Options} */ defaults) {
236236
* @public
237237
* @type {AbortController}
238238
*/
239-
redaxios.CancelToken = /** @type {any} */ (self).AbortController || Object;
239+
redaxios.CancelToken = /** @type {any} */ (typeof AbortController === 'function' ? AbortController : Object);
240240

241241
/**
242242
* @public

0 commit comments

Comments
 (0)