feat: show wss URL
This commit is contained in:
parent
5e313c0282
commit
63be2b5b2d
3 changed files with 29 additions and 6 deletions
|
|
@ -92,6 +92,13 @@ async function relayDetails(path) {
|
|||
{value: 'block', label: 'Block New Events'},
|
||||
{value: 'prune', label: 'Prune Old Events'}
|
||||
]
|
||||
},
|
||||
wssLink: function () {
|
||||
this.relay.config.domain =
|
||||
this.relay.config.domain || window.location.hostname
|
||||
return (
|
||||
'wss://' + this.relay.config.domain + '/nostrrelay/' + this.relay.id
|
||||
)
|
||||
}
|
||||
},
|
||||
|
||||
|
|
@ -138,7 +145,7 @@ async function relayDetails(path) {
|
|||
updateRelay: async function () {
|
||||
try {
|
||||
const {data} = await LNbits.api.request(
|
||||
'PUT',
|
||||
'PATCH',
|
||||
'/nostrrelay/api/v1/relay/' + this.relayId,
|
||||
this.adminkey,
|
||||
this.relay
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue