From d15bf190fe9f19f83e032ca0545b5c67cda3450f Mon Sep 17 00:00:00 2001 From: afornerot Date: Wed, 17 Jul 2019 11:59:20 +0200 Subject: [PATCH] svg --- .../WebsocketBundle/Resources/views/Chat/client.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ninegate-1.0/src/Cadoles/WebsocketBundle/Resources/views/Chat/client.html.twig b/src/ninegate-1.0/src/Cadoles/WebsocketBundle/Resources/views/Chat/client.html.twig index 9e87eede..72ae0ee8 100644 --- a/src/ninegate-1.0/src/Cadoles/WebsocketBundle/Resources/views/Chat/client.html.twig +++ b/src/ninegate-1.0/src/Cadoles/WebsocketBundle/Resources/views/Chat/client.html.twig @@ -115,7 +115,7 @@ $( "#sendbtn" ).click(function() { var data = CKEDITOR.instances["chat_message"].getData(); - session.publish("websocket/channel/{{groupid}}", data); + if(data) session.publish("websocket/channel/{{groupid}}", data); }); /*