Skip to content

Commit 6e4aca8

Browse files
committed
fix
1 parent 1edfe1d commit 6e4aca8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/addons/consoleCatcher.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const createConsoleCatcher = (): {
2525
const firstArg = args[0];
2626

2727
if (typeof firstArg !== 'string' || !firstArg.includes('%c')) {
28+
2829
return {
2930
message: args
3031
.map((arg) => (typeof arg === 'string' ? arg : safeStringify(arg)))
@@ -74,6 +75,7 @@ const createConsoleCatcher = (): {
7475
): ConsoleLogEvent => {
7576

7677
if (event instanceof ErrorEvent) {
78+
7779
return {
7880
method: 'error',
7981
timestamp: new Date(),
@@ -149,6 +151,7 @@ const createConsoleCatcher = (): {
149151
},
150152

151153
getConsoleLogStack(): ConsoleLogEvent[] {
154+
152155
return [ ...consoleOutput ];
153156
},
154157
};

0 commit comments

Comments
 (0)