Detect network from url also when languages are being used.

fixes #287
This commit is contained in:
softsimon 2021-02-01 04:17:34 +07:00
parent d3646aa45e
commit fd869c732d
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7

View File

@ -103,7 +103,8 @@ export class StateService {
}
setNetworkBasedonUrl(url: string) {
switch (url.split(/\/|\?|#/)[1]) {
const networkMatches = url.match(/\/(bisq|testnet|liquid)/);
switch (networkMatches && networkMatches[1]) {
case 'liquid':
if (this.network !== 'liquid') {
this.network = 'liquid';