Default testnet updated

This commit is contained in:
raja.blaze 2019-08-19 11:13:48 +05:30
parent 4c1204d61a
commit d0694e5de3
4 changed files with 12 additions and 4 deletions

View File

@ -13,7 +13,7 @@ export function validationMiddleware<T>(
if(request.headers.network){ if(request.headers.network){
Global.network = request.headers.network; Global.network = request.headers.network;
}else{ }else{
Global.network = 'Floonet'; Global.network = 'Testnet';
} }
validate( validate(
plainToClass(type, { plainToClass(type, {

View File

@ -27,7 +27,11 @@ export class HeaderComponent implements OnInit {
} }
public getNetwork(){ public getNetwork(){
if(localStorage.getItem('network') == null){
return "Testnet";
}else{
return localStorage.getItem('network'); return localStorage.getItem('network');
}
} }
public onChangeNetwork(networkValue){ public onChangeNetwork(networkValue){

View File

@ -24,8 +24,12 @@ export class SiteheaderComponent implements OnInit {
} }
public getNetwork(){ public getNetwork(){
return localStorage.getItem('network'); if(localStorage.getItem('network') == null){
} return "Testnet";
}else{
return localStorage.getItem('network');
}
}
public onChangeNetwork(networkValue){ public onChangeNetwork(networkValue){
localStorage.setItem('network', networkValue); localStorage.setItem('network', networkValue);

View File

@ -45,7 +45,7 @@ export class ChartService {
public getHttpheader(){ public getHttpheader(){
var network; var network;
if(localStorage.getItem('network') == null){ if(localStorage.getItem('network') == null){
network = "Floonet" network = "Testnet"
}else{ }else{
network = localStorage.getItem('network') network = localStorage.getItem('network')
} }