added message notification

This commit is contained in:
Ben Arc
2021-04-19 09:48:05 +01:00
parent ab81fb08b0
commit a0001a015a

View File

@@ -174,6 +174,7 @@
this.connection.addEventListener('open', function (event) {
this.connection.send('')
})
var showNotif = this.showNotif
this.connection.addEventListener('message', function (event) {
res = event.data.split('-')
@@ -241,7 +242,7 @@
}
console.log(res[2])
if (res[2] != 'none') {
this.showNotif(res[2])
showNotif(res[2])
}
}
})