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