File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -196,7 +196,8 @@ export class ConsoleCatcher {
196196 const oldFunction = window . console [ method ] . bind ( window . console ) ;
197197
198198 window . console [ method ] = ( ...args : unknown [ ] ) : void => {
199- const stack = new Error ( ) . stack ?. split ( '\n' ) . slice ( 2 ) . join ( '\n' ) || '' ;
199+ const stack = new Error ( ) . stack ?. split ( '\n' ) . slice ( 2 )
200+ . join ( '\n' ) || '' ;
200201 const { message, styles } = this . formatConsoleArgs ( args ) ;
201202
202203 const logEvent : ConsoleLogEvent = {
@@ -232,7 +233,7 @@ export class ConsoleCatcher {
232233 */
233234 // eslint-disable-next-line @typescript-eslint/member-ordering
234235 public getConsoleLogStack ( ) : ConsoleLogEvent [ ] {
235- return [ ...this . consoleOutput ] ;
236+ return [ ...this . consoleOutput ] ;
236237 }
237238}
238239// TODO:: 1) replace window with globalThis for better compatibility with different environments
You can’t perform that action at this time.
0 commit comments