feat: add reconnect to nostrclient
This commit is contained in:
parent
929d45bed8
commit
e05b54468a
5 changed files with 52 additions and 3 deletions
|
|
@ -136,6 +136,17 @@ const merchant = async () => {
|
|||
caption: `${error}`
|
||||
})
|
||||
}
|
||||
},
|
||||
restartNostrConnection: async function () {
|
||||
try {
|
||||
await LNbits.api.request(
|
||||
'PUT',
|
||||
'/nostrmarket/api/v1/restart',
|
||||
this.g.user.wallets[0].adminkey
|
||||
)
|
||||
} catch (error) {
|
||||
LNbits.utils.notifyApiError(error)
|
||||
}
|
||||
}
|
||||
},
|
||||
created: async function () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue