TLS
This commit is contained in:
@@ -27,10 +27,11 @@ export class SplashComponent {
|
||||
public chartOptions: any;
|
||||
|
||||
public stratumURL = '';
|
||||
public secureStratumURL = '';
|
||||
|
||||
private info$: Observable<any>;
|
||||
|
||||
private networkInfo:any;
|
||||
private networkInfo: any;
|
||||
|
||||
constructor(private appService: AppService, private cdr: ChangeDetectorRef) {
|
||||
|
||||
@@ -42,6 +43,12 @@ export class SplashComponent {
|
||||
this.stratumURL = window.location.hostname + ':3333';
|
||||
}
|
||||
|
||||
if (environment.SECURE_STRATUM_URL.length > 1) {
|
||||
this.secureStratumURL = environment.SECURE_STRATUM_URL;
|
||||
} else {
|
||||
this.secureStratumURL = window.location.hostname + ':4333';
|
||||
}
|
||||
|
||||
this.blockData$ = this.info$.pipe(map(info => info.blockData));
|
||||
this.userAgents$ = this.info$.pipe(map(info => info.userAgents));
|
||||
this.highScores$ = this.info$.pipe(map(info => info.highScores));
|
||||
@@ -107,7 +114,7 @@ export class SplashComponent {
|
||||
ticks: {
|
||||
color: textColorSecondary,
|
||||
callback: (value: number) => {
|
||||
return HashSuffixPipe.transform(value) + " - " + AverageTimeToBlockPipe.transform(value, this.networkInfo.difficulty);
|
||||
return HashSuffixPipe.transform(value) + " - " + AverageTimeToBlockPipe.transform(value, this.networkInfo.difficulty);
|
||||
}
|
||||
},
|
||||
grid: {
|
||||
|
||||
Reference in New Issue
Block a user