File tree 1 file changed +14
-12
lines changed
1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -139,19 +139,19 @@ angular.module('netStatsApp.filters', [])
139
139
tmp [ 0 ] = 'pyeth' ;
140
140
}
141
141
142
- if ( tmp [ 1 ] [ 0 ] !== 'v' && tmp [ 1 ] [ 2 ] !== '.' )
142
+ if ( tmp [ 1 ] && tmp [ 1 ] [ 0 ] !== 'v' && tmp [ 1 ] [ 2 ] !== '.' )
143
143
{
144
144
tmp . splice ( 1 , 1 ) ;
145
145
}
146
146
147
- if ( tmp [ 2 ] === 'Release' ) {
147
+ if ( tmp [ 2 ] && tmp [ 2 ] === 'Release' ) {
148
148
tmp . splice ( 2 , 1 ) ;
149
149
}
150
150
151
- if ( tmp [ 2 ] . indexOf ( 'Linux' ) === 0 )
151
+ if ( tmp [ 2 ] && tmp [ 2 ] . indexOf ( 'Linux' ) === 0 )
152
152
tmp [ 2 ] = 'linux' ;
153
153
154
- if ( tmp [ 2 ] . indexOf ( 'Darwin' ) === 0 )
154
+ if ( tmp [ 2 ] && tmp [ 2 ] . indexOf ( 'Darwin' ) === 0 )
155
155
tmp [ 2 ] = 'darwin' ;
156
156
157
157
return $sce . trustAsHtml ( tmp . join ( '/' ) ) ;
@@ -466,16 +466,18 @@ angular.module('netStatsApp.filters', [])
466
466
if ( node . info . node ) {
467
467
var eth_version = node . info . node . split ( '/' ) ;
468
468
469
- if ( eth_version [ 1 ] [ 0 ] !== 'v' && eth_version [ 1 ] [ 2 ] !== '.' )
470
- {
471
- eth_version . splice ( 1 , 1 ) ;
472
- }
469
+ if ( eth_version [ 1 ] ) {
470
+ if ( eth_version [ 1 ] [ 0 ] !== 'v' && eth_version [ 1 ] [ 2 ] !== '.' )
471
+ {
472
+ eth_version . splice ( 1 , 1 ) ;
473
+ }
473
474
474
- string = "<b>" + node . info . node + "</b>" ;
475
- tooltip . push ( string ) ;
475
+ string = "<b>" + node . info . node + "</b>" ;
476
+ tooltip . push ( string ) ;
476
477
477
- string = "Version: <b>" + ( eth_version [ 1 ] ) + "</b>" ;
478
- tooltip . push ( string ) ;
478
+ string = "Version: <b>" + ( eth_version [ 1 ] ) + "</b>" ;
479
+ tooltip . push ( string ) ;
480
+ }
479
481
}
480
482
481
483
if ( node . info . net !== '' ) {
You can’t perform that action at this time.
0 commit comments