Showing
2 changed files
with
1 additions
and
2 deletions
@@ -648,7 +648,7 @@ let chat = { | @@ -648,7 +648,7 @@ let chat = { | ||
648 | 648 | ||
649 | chatMessage.content = canLeave ? | 649 | chatMessage.content = canLeave ? |
650 | chatMessage.content : | 650 | chatMessage.content : |
651 | - (chatMessage.content = chatMessage.content.replace(reg, "")); | 651 | + (chatMessage.content = chatMessage.content.replace(reg, '')); |
652 | 652 | ||
653 | canLeave && (self.canLeaveMSG = true); | 653 | canLeave && (self.canLeaveMSG = true); |
654 | sysInfo(`${chatMessage.content || ''}${append}`); | 654 | sysInfo(`${chatMessage.content || ''}${append}`); |
@@ -59,7 +59,6 @@ function sendMsg(msg) { | @@ -59,7 +59,6 @@ function sendMsg(msg) { | ||
59 | return; | 59 | return; |
60 | } | 60 | } |
61 | if (socket.readyState === WebSocket.OPEN) { | 61 | if (socket.readyState === WebSocket.OPEN) { |
62 | - console.log('websocket send: ', JSON.parse(msg)); | ||
63 | socket.send(msg); | 62 | socket.send(msg); |
64 | } else { | 63 | } else { |
65 | sendFailCallback(); | 64 | sendFailCallback(); |
-
Please register or login to post a comment