Fixing routes to /tv and /status

This commit is contained in:
softsimon
2020-07-02 22:34:16 +07:00
parent f5260b72e5
commit 2ebdb27dcb
3 changed files with 72 additions and 116 deletions

View File

@@ -53,16 +53,12 @@ export class StateService {
setNetworkBasedonUrl(url: string) {
switch (url.split('/')[1]) {
case 'liquid':
case 'liquid-tv':
case 'liquid-status-view':
if (this.network !== 'liquid') {
this.network = 'liquid';
this.networkChanged$.next('liquid');
}
return;
case 'testnet':
case 'testnet-tv':
case 'testnet-status-view':
if (this.network !== 'testnet') {
this.network = 'testnet';
this.networkChanged$.next('testnet');