Skip to content

Commit

Permalink
fix the abort controller check
Browse files Browse the repository at this point in the history
PR-URL: #217
Credit: @agalatan
Close: #217
Reviewed-by: @bytemain
  • Loading branch information
Alin Galatan authored and isaacs committed Mar 18, 2022
1 parent 74edff9 commit 7a7abe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const perf = typeof performance === 'object' && performance &&
typeof performance.now === 'function' ? performance : Date

const hasAbortController = typeof AbortController !== undefined
const hasAbortController = typeof AbortController !== 'undefined'

/* istanbul ignore next - minimal backwards compatibility polyfill */
const AC = hasAbortController ? AbortController : Object.assign(
Expand Down

0 comments on commit 7a7abe5

Please sign in to comment.