chore: code format

This commit is contained in:
Vlad Stan 2023-05-05 13:01:07 +03:00
parent 5d906c1fda
commit d74776ee93

View file

@ -391,7 +391,7 @@
LNbits.utils.notifyApiError(error)
})
},
sendTestMessage: async function(){
sendTestMessage: async function () {
try {
const {data} = await LNbits.api.request(
'PUT',
@ -405,7 +405,10 @@
)
console.log('### data', data)
this.testData.senderPrivateKey = data.private_key
this.$q.localStorage.set('lnbits.nostrclient.senderPrivateKey', data.private_key || '')
this.$q.localStorage.set(
'lnbits.nostrclient.senderPrivateKey',
data.private_key || ''
)
const event = JSON.parse(data.event_json)[1]
console.log('### event', event)
this.sendDataToWebSocket(data.event_json)
@ -414,7 +417,7 @@
}
},
sendDataToWebSocket: async function (data){
sendDataToWebSocket: async function (data) {
try {
if (!this.testData.wsConnection) {
this.connectToWebsocket()
@ -447,7 +450,6 @@
// const data = JSON.parse(e.data)
console.log('### onclose', e.data)
}
},
exportlnurldeviceCSV: function () {
var self = this
@ -458,7 +460,9 @@
var self = this
this.getRelays()
setInterval(this.getRelays, 5000)
this.testData.senderPrivateKey = this.$q.localStorage.getItem('lnbits.nostrclient.senderPrivateKey') || ''
this.testData.senderPrivateKey =
this.$q.localStorage.getItem('lnbits.nostrclient.senderPrivateKey') ||
''
}
})
</script>