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

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