fixing type on event/send argument
This commit is contained in:
parent
c661c344ed
commit
b33df8399e
@ -34,8 +34,8 @@
|
||||
return document.getElementById('responseText');
|
||||
}
|
||||
|
||||
function send(e) {
|
||||
e.preventDefault();
|
||||
function send(event) {
|
||||
event.preventDefault();
|
||||
if (window.WebSocket) {
|
||||
if (socket.readyState == WebSocket.OPEN) {
|
||||
socket.send(event.target.message.value);
|
||||
|
Loading…
Reference in New Issue
Block a user