Skip to content

Commit

Permalink
Fix polyfill
Browse files Browse the repository at this point in the history
Signed-off-by: Sri Krishna Paritala <skrishna@buf.build>
  • Loading branch information
srikrsna-buf committed Sep 5, 2024
1 parent 87cf10f commit 69f67fd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// a simplistic polyfill for AbortController and AbortSignal

(function () {
if (!globalThis.AbortController || !globalThis.AbortSignal) {
if (globalThis.AbortController && globalThis.AbortSignal) {
// `throwIfAborted` was added much later.
if (!globalThis.AbortSignal.prototype.throwIfAborted) {
globalThis.AbortSignal.prototype.throwIfAborted = function () {
Expand Down

0 comments on commit 69f67fd

Please sign in to comment.