From 4490afa1025c79c4501be0059d47c793b11c2b7b Mon Sep 17 00:00:00 2001 From: Pawel Psztyc Date: Fri, 16 Jul 2021 16:11:27 -0700 Subject: [PATCH] fix: fixes #389 - error popping up Signed-off-by: Pawel Psztyc --- src/preload/UniversalAnalytics.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/preload/UniversalAnalytics.js b/src/preload/UniversalAnalytics.js index 8ec6d0e7..b6319313 100644 --- a/src/preload/UniversalAnalytics.js +++ b/src/preload/UniversalAnalytics.js @@ -893,7 +893,7 @@ export class UniversalAnalytics { if (!offline) { offlineQueue.push(body); } else { - throw new Error('Unable send data.'); + throw new Error('Unable send analytics data.'); } } if (this.debugEndpoint) { @@ -906,7 +906,9 @@ export class UniversalAnalytics { offlineQueue.push(body); return; } - throw new Error('Unable to send data'); + /* eslint-disable-next-line */ + console.warn(e); + // throw new Error('Unable to send data'); } }