fixing type on event/send argument

This commit is contained in:
Matthias Wessendorf 2012-11-27 18:09:53 +01:00 committed by Norman Maurer
parent c661c344ed
commit b33df8399e

View File

@ -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);