mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 15:04:50 +01:00
Remove trailing slash in lighning wallet
This commit is contained in:
parent
dbf2a8e5d8
commit
e2153d6ca5
1 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ export class LightningCustodianWallet extends LegacyWallet {
|
|||
* @param URI
|
||||
*/
|
||||
setBaseURI(URI: string | undefined) {
|
||||
this.baseURI = URI;
|
||||
this.baseURI = URI?.endsWith("/") ? URI.slice(0, -1) : URI;
|
||||
}
|
||||
|
||||
getBaseURI() {
|
||||
|
@ -579,7 +579,7 @@ export class LightningCustodianWallet extends LegacyWallet {
|
|||
}
|
||||
|
||||
static async isValidNodeAddress(address: string) {
|
||||
const response = await fetch(address + '/getinfo', {
|
||||
const response = await fetch((address?.endsWith("/") ? address.slice(0, -1) : address) + '/getinfo', {
|
||||
method: 'GET',
|
||||
headers: {
|
||||
'Access-Control-Allow-Origin': '*',
|
||||
|
|
Loading…
Add table
Reference in a new issue