Commit b17bd83e authored by herbepau's avatar herbepau Committed by Dan Gershony

The advanced-service calls weren't using the correct URL prefix based… (#395)

* The advanced-service calls weren't using the correct URL prefix based on the selected coin - they now do.

* advanced-service: simple improvement to the forming of URL prefix.

* Removed a console.log from advanced-service
parent 91aec236
...@@ -20,8 +20,7 @@ export class AdvancedService { ...@@ -20,8 +20,7 @@ export class AdvancedService {
constructor(private httpClient: HttpClient, private globalService: GlobalService, navigationService: NavigationService) { constructor(private httpClient: HttpClient, private globalService: GlobalService, navigationService: NavigationService) {
this.walletName = this.globalService.getWalletName(); this.walletName = this.globalService.getWalletName();
navigationService.pageSubject.subscribe(x => navigationService.pageSubject.subscribe(x => this.urlPrefix = `http://localhost:3722${x}/api/Wallet/`);
this.urlPrefix = `http://localhost:3722${Page.Bitcoin ? 0 : 1}/api/Wallet/`);
} }
public getExtPubKey(): Observable<string> { public getExtPubKey(): Observable<string> {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment