File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 3737 req . send ( data ) ;
3838 }
3939
40- if ( typeof console !== 'object' ) {
41- var console = { } ;
42- window . console = console ;
43- }
44-
45- _console_log = console . log ;
46-
47- console . log = function ( ) {
40+ var browserstack_console = console || window . console || { } ;
41+ browserstack_console . log = function ( ) {
4842 var args = BrowserStack . util . toArray ( arguments ) . map ( BrowserStack . util . inspect ) ;
4943 post ( '/_log/' , { arguments : args } , function ( ) { } ) ;
5044 } ;
51- console . warn = function ( ) {
45+ browserstack_console . warn = function ( ) {
5246 var args = BrowserStack . util . toArray ( arguments ) . map ( BrowserStack . util . inspect ) ;
5347 post ( '/_log/' , { arguments : args } , function ( ) { } ) ;
5448 } ;
6054 BrowserStack . worker_uuid = getParameterByName ( '_worker_key' ) ;
6155
6256 window . BrowserStack = BrowserStack ;
57+ window . console = browserstack_console ;
58+ console = browserstack_console ;
6359} ) ( ) ;
You can’t perform that action at this time.
0 commit comments