Skip to content

Commit

Permalink
fix: fixes #389 - error popping up
Browse files Browse the repository at this point in the history
Signed-off-by: Pawel Psztyc <jarrodek@gmail.com>
  • Loading branch information
jarrodek committed Jul 16, 2021
1 parent 5fb50e1 commit 4490afa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/preload/UniversalAnalytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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');
}
}

Expand Down

0 comments on commit 4490afa

Please sign in to comment.