mirror of
https://github.com/mempool/mempool.git
synced 2025-03-29 11:12:16 +01:00
Don't append /api to electrs backend path for SSR
This commit is contained in:
parent
e5959f14bc
commit
5a70234370
@ -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) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user