Default testnet updated
This commit is contained in:
parent
4c1204d61a
commit
d0694e5de3
@ -13,7 +13,7 @@ export function validationMiddleware<T>(
|
||||
if(request.headers.network){
|
||||
Global.network = request.headers.network;
|
||||
}else{
|
||||
Global.network = 'Floonet';
|
||||
Global.network = 'Testnet';
|
||||
}
|
||||
validate(
|
||||
plainToClass(type, {
|
||||
|
@ -27,8 +27,12 @@ export class HeaderComponent implements OnInit {
|
||||
}
|
||||
|
||||
public getNetwork(){
|
||||
if(localStorage.getItem('network') == null){
|
||||
return "Testnet";
|
||||
}else{
|
||||
return localStorage.getItem('network');
|
||||
}
|
||||
}
|
||||
|
||||
public onChangeNetwork(networkValue){
|
||||
localStorage.setItem('network', networkValue);
|
||||
|
@ -24,8 +24,12 @@ export class SiteheaderComponent implements OnInit {
|
||||
}
|
||||
|
||||
public getNetwork(){
|
||||
if(localStorage.getItem('network') == null){
|
||||
return "Testnet";
|
||||
}else{
|
||||
return localStorage.getItem('network');
|
||||
}
|
||||
}
|
||||
|
||||
public onChangeNetwork(networkValue){
|
||||
localStorage.setItem('network', networkValue);
|
||||
|
@ -45,7 +45,7 @@ export class ChartService {
|
||||
public getHttpheader(){
|
||||
var network;
|
||||
if(localStorage.getItem('network') == null){
|
||||
network = "Floonet"
|
||||
network = "Testnet"
|
||||
}else{
|
||||
network = localStorage.getItem('network')
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user