mirror of
https://github.com/lnbits/lnbits.git
synced 2025-10-09 12:02:39 +02:00
added message notification
This commit is contained in:
@@ -174,6 +174,7 @@
|
|||||||
this.connection.addEventListener('open', function (event) {
|
this.connection.addEventListener('open', function (event) {
|
||||||
this.connection.send('')
|
this.connection.send('')
|
||||||
})
|
})
|
||||||
|
var showNotif = this.showNotif
|
||||||
|
|
||||||
this.connection.addEventListener('message', function (event) {
|
this.connection.addEventListener('message', function (event) {
|
||||||
res = event.data.split('-')
|
res = event.data.split('-')
|
||||||
@@ -241,7 +242,7 @@
|
|||||||
}
|
}
|
||||||
console.log(res[2])
|
console.log(res[2])
|
||||||
if (res[2] != 'none') {
|
if (res[2] != 'none') {
|
||||||
this.showNotif(res[2])
|
showNotif(res[2])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user