0.0.133
This commit is contained in:
@@ -88,6 +88,13 @@ chatSocket.onmessage = function (e) {
|
||||
|
||||
}
|
||||
}
|
||||
if (data.unread_msgs_count > 0){
|
||||
let list_unrd = document.querySelectorAll(".unredmessages_value_text")
|
||||
let i = 0
|
||||
for (i;i < list_unrd.length;i++){
|
||||
list_unrd[i].innerHTML = data.unread_msgs_count.toString()
|
||||
}
|
||||
}
|
||||
if (data.required_beep === true) {
|
||||
const beep = new Audio('/static/sounds/beep_2.mp3')
|
||||
beep.play()
|
||||
|
||||
Reference in New Issue
Block a user