Don't append /api to electrs backend path for SSR

This commit is contained in:
wiz 2020-11-23 16:53:44 +09:00
parent e5959f14bc
commit 5a70234370
No known key found for this signature in database
GPG Key ID: A394E332255A6173

View File

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