diff --git a/src/index.ts b/src/index.ts index 0616e8a..e326dcc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -484,9 +484,14 @@ export class UnleashClient extends TinyEmitter { }); } } catch (e) { - console.error('Unleash: unable to fetch feature toggles', e); - this.sdkState = 'error'; - this.emit(EVENTS.ERROR, e); + if (!(e instanceof DOMException && e.name === 'AbortError')) { + console.error( + 'Unleash: unable to fetch feature toggles', + e + ); + this.sdkState = 'error'; + this.emit(EVENTS.ERROR, e); + } } finally { this.abortController = null; }