@@ -48,25 +48,23 @@ class Browser {
4848 onKarmaError ( error ) {
4949 if ( this . isNotConnected ( ) ) {
5050 this . lastResult . error = true
51- this . emitter . emit ( 'browser_error' , this , error )
52- this . refreshNoActivityTimeout ( )
5351 }
52+ this . emitter . emit ( 'browser_error' , this , error )
53+ this . refreshNoActivityTimeout ( )
5454 }
5555
5656 onInfo ( info ) {
57- if ( this . isNotConnected ( ) ) {
58- if ( helper . isDefined ( info . dump ) ) {
59- this . emitter . emit ( 'browser_log' , this , info . dump , 'dump' )
60- }
61-
62- if ( helper . isDefined ( info . log ) ) {
63- this . emitter . emit ( 'browser_log' , this , info . log , info . type )
64- } else if ( ! helper . isDefined ( info . dump ) ) {
65- this . emitter . emit ( 'browser_info' , this , info )
66- }
57+ if ( helper . isDefined ( info . dump ) ) {
58+ this . emitter . emit ( 'browser_log' , this , info . dump , 'dump' )
59+ }
6760
68- this . refreshNoActivityTimeout ( )
61+ if ( helper . isDefined ( info . log ) ) {
62+ this . emitter . emit ( 'browser_log' , this , info . log , info . type )
63+ } else if ( ! helper . isDefined ( info . dump ) ) {
64+ this . emitter . emit ( 'browser_info' , this , info )
6965 }
66+
67+ this . refreshNoActivityTimeout ( )
7068 }
7169
7270 onStart ( info ) {
0 commit comments