add try catch

This commit is contained in:
2023-04-01 22:20:53 +02:00
parent 5038381b65
commit 826147e3f7
4 changed files with 21 additions and 7 deletions

View File

@@ -35,7 +35,9 @@
$("#send").click(function(){
data = $("#ins").val();
if(data != ""){
umami.trackEvent('Admin send chat message', { type: 'chatadminmessage', code: kod});
try{
umami.trackEvent('Admin send chat message', { type: 'chatadminmessage', code: kod});
} catch(e) {}
$.post("index.php?chat=1&send=1",
{
text: data