Skip to content

Commit b373e8b

Browse files
author
Roy Miloh
committed
"self" to not be a mandatory global
1 parent ab8b393 commit b373e8b

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
@@ -192,7 +192,7 @@ export default (function create(defaults) {
192192
});
193193
}
194194

195-
redaxios.CancelToken = self.AbortController || Object;
195+
redaxios.CancelToken = typeof self === 'object' && self.AbortController || Object;
196196

197197
redaxios.create = create;
198198

0 commit comments

Comments
 (0)