Default testnet updated
This commit is contained in:
parent
4c1204d61a
commit
d0694e5de3
@ -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, {
|
||||||
|
@ -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){
|
||||||
|
@ -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);
|
||||||
|
@ -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')
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user