Default frontend network setting

This commit is contained in:
softsimon
2024-06-15 00:22:33 +02:00
parent 684ad9f0e6
commit ce46aae8cc
7 changed files with 39 additions and 30 deletions

View File

@@ -29,7 +29,7 @@ export class ApiService {
}
this.apiBasePath = ''; // assume mainnet by default
this.stateService.networkChanged$.subscribe((network) => {
this.apiBasePath = network ? '/' + network : '';
this.apiBasePath = network && network !== this.stateService.env.DEFAULT_NETWORK ? '/' + network : '';
});
}