Skip to content

Commit 9848a3e

Browse files
chore(internal): update global Error reference
1 parent a431022 commit 9848a3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ export class Xga {
375375
const response = await this.fetchWithTimeout(url, req, timeout, controller).catch(castToError);
376376
const headersTime = Date.now();
377377

378-
if (response instanceof Error) {
378+
if (response instanceof globalThis.Error) {
379379
const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
380380
if (options.signal?.aborted) {
381381
throw new Errors.APIUserAbortError();

0 commit comments

Comments
 (0)