Skip to content

Commit

Permalink
Fix invalid URL in Request constructor (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-all3dp authored Aug 7, 2023
1 parent 7dbfd5d commit 1b43e7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/abort-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const browserGlobal =
typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : null; // self is the global in web workers
if (!browserGlobal) {
AbortController = require('abort-controller');
} else if ('signal' in new Request('')) {
} else if ('signal' in new Request('https://airtable.com')) {
AbortController = browserGlobal.AbortController;
} else {
/* eslint-disable @typescript-eslint/no-var-requires */
Expand Down

0 comments on commit 1b43e7d

Please sign in to comment.