From 1b43e7dfa7e5e0790ad8bddf8bd7d5d8b139d090 Mon Sep 17 00:00:00 2001 From: Alexander Friedl <52403795+alex-all3dp@users.noreply.github.com> Date: Mon, 7 Aug 2023 17:25:48 +0200 Subject: [PATCH] Fix invalid URL in Request constructor (#372) --- src/abort-controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/abort-controller.ts b/src/abort-controller.ts index ed11d79a..a0882fc3 100644 --- a/src/abort-controller.ts +++ b/src/abort-controller.ts @@ -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 */