Adding Liquid Testnet as frontend option

fixes #976
This commit is contained in:
softsimon committed 2021-12-28 11:16:33 +04:00
1 parent 18a45123c8
commit 13bfa5902d
38 files changed
+342 -72

No files matched your search

@@ -11,10 +11,13 @@ export class RelativeUrlPipe implements PipeTransform {
) { }
transform(value: string): string {
if (this.stateService.env.BASE_MODULE !== 'mempool') {
return '/' + value;
let network = this.stateService.network;
if (this.stateService.env.BASE_MODULE === 'liquid' && network === 'liquidtestnet') {
network = 'testnet';
} else if (this.stateService.env.BASE_MODULE !== 'mempool') {
network = '';
}
return (this.stateService.network ? '/' + this.stateService.network : '') + value;
return (network ? '/' + network : '') + value;
}
}