kopia lustrzana https://gitlab.com/gridtracker.org/gridtracker
Remove all carriage return and linefeeds from chat input string on 'Enter' event
rodzic
a3cf01e0fd
commit
8830ac7f6f
|
@ -83,7 +83,7 @@
|
|||
if (event.key === "Enter")
|
||||
{
|
||||
// Do work
|
||||
var msg = messageInput.value.trim();
|
||||
var msg = messageInput.value.replace(/[\n\r]/g, '');
|
||||
if (msg.length > 0 && g_currentId != 0 && g_currentId in window.opener.g_gtFlagPins && window.opener.g_gtFlagPins[g_currentId].canmsg == true)
|
||||
{
|
||||
var worker = "";
|
||||
|
|
Ładowanie…
Reference in New Issue