New frontend config for webserver url to fix static asset httpGet.

Removed "absolute" from config names.
This commit is contained in:
softsimon
2020-11-23 18:22:21 +07:00
parent 2054c951ae
commit 2cbf1474c3
6 changed files with 23 additions and 13 deletions

View File

@@ -17,7 +17,7 @@ export class ElectrsApiService {
private stateService: StateService,
) {
if (!stateService.isBrowser) {
API_BASE_URL = this.stateService.env.ELECTRS_ABSOLUTE_URL;
API_BASE_URL = this.stateService.env.ELECTRS_URL + '/api';
}
this.apiBaseUrl = API_BASE_URL.replace('{network}', '');
this.stateService.networkChanged$.subscribe((network) => {