parent
d3646aa45e
commit
fd869c732d
@ -103,7 +103,8 @@ export class StateService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setNetworkBasedonUrl(url: string) {
|
setNetworkBasedonUrl(url: string) {
|
||||||
switch (url.split(/\/|\?|#/)[1]) {
|
const networkMatches = url.match(/\/(bisq|testnet|liquid)/);
|
||||||
|
switch (networkMatches && networkMatches[1]) {
|
||||||
case 'liquid':
|
case 'liquid':
|
||||||
if (this.network !== 'liquid') {
|
if (this.network !== 'liquid') {
|
||||||
this.network = 'liquid';
|
this.network = 'liquid';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user