diff --git a/public/js/filters.js b/public/js/filters.js
index 6290e03..bfebb89 100644
--- a/public/js/filters.js
+++ b/public/js/filters.js
@@ -45,16 +45,9 @@ angular.module('netStatsApp.filters', [])
.filter('nodeVersion', function($sce) {
return function(version) {
if(typeof version !== 'undefined') {
- version = version.replace('eth version ', 'v')
- .replace("\n" + 'Network protocol version: ', ' (')
- .replace("\n" + 'Client database version: ', ',')
- .replace("\n" + 'Build: ', ') - ')
- .replace('/Debug', '')
- .replace('/.', '');
+ return $sce.trustAsHtml(version);
} else
return '';
-
- return $sce.trustAsHtml(version);
};
})
.filter('blockClass', function() {
@@ -219,7 +212,7 @@ angular.module('netStatsApp.filters', [])
}
if(node.info.contact !== '') {
- string = "Contact: " + node.info.contact + "";
+ string = "Contact: " + (typeof node.info.contact !== 'undefined' ? node.info.contact : '-') + "";
tooltip.push(string);
}
@@ -241,13 +234,13 @@ angular.module('netStatsApp.filters', [])
}
if(node.info.net !== '') {
- string = "Network: " + node.info.net + "";
+ string = "Network: " + (typeof node.info.net !== 'undefined' ? node.info.net : '-') + "";
tooltip.push(string);
}
if(node.info.protocol !== '') {
- string = "Protocol: " + node.info.protocol + "";
+ string = "Protocol: " + (typeof node.info.protocol !== 'undefined' ? node.info.protocol : '-') + "";
tooltip.push(string);
}
@@ -259,7 +252,7 @@ angular.module('netStatsApp.filters', [])
}
if(node.info.client !== '') {
- string = "API: " + node.info.client + "";
+ string = "API: " + (typeof node.info.client !== 'undefined' ? node.info.client : '> 0.0.3') + "";
tooltip.push(string);
}