This commit is contained in:
2023-08-08 18:33:05 +03:00
parent b3ea94db3d
commit 280ce76a8e

View File

@@ -70,8 +70,7 @@ function check_new_messages (window,it){
data: JSON.stringify(data_new_messages),
success: function(data){
success_check_new_messages(data)
const beep = new Audio('/static/sounds/beep.MP3');
beep.play()
},
error: function (data){
@@ -100,4 +99,9 @@ function success_check_new_messages (data) {
}
}
}
if (data.required_beep === true){
const beep = new Audio('/static/sounds/beep.MP3')
beep.play()
}
}