We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4b6516 commit 9b914ebCopy full SHA for 9b914eb
src/catcher.ts
@@ -513,7 +513,7 @@ export default class Catcher {
513
const userAgent = window.navigator.userAgent;
514
const location = window.location.href;
515
const getParams = this.getGetParams();
516
- const consoleLogs = this.consoleTracking ? getConsoleLogStack() : [];
+ const consoleLogs = this.consoleTracking && getConsoleLogStack();
517
518
const addons: JavaScriptAddons = {
519
window: {
@@ -532,7 +532,7 @@ export default class Catcher {
532
addons.RAW_EVENT_DATA = this.getRawData(error);
533
}
534
535
- if (consoleLogs.length > 0) {
+ if (consoleLogs && consoleLogs.length > 0) {
536
addons.consoleOutput = consoleLogs;
537
538
0 commit comments