diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-07-23 16:34:39 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-07-23 16:34:39 (GMT) |
commit | bb9497361b566884a1e4cb6d76a6f539383bd32c (patch) | |
tree | d8dbf2a8fa4e98258ebe5aa6fb36f8e72e018d66 /web-static/socket.html | |
parent | 2f2d09ea5aa99f1c80b12fc4e088ffc2248d690b (diff) |
greatly simplified web uploads
Diffstat (limited to 'web-static/socket.html')
-rw-r--r-- | web-static/socket.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web-static/socket.html b/web-static/socket.html index 9781e81..6d6236c 100644 --- a/web-static/socket.html +++ b/web-static/socket.html @@ -66,8 +66,10 @@ $('#rawmsg').text(""); this.sock = new WebSocket("ws://localhost:4080/public/socket"); this.sock_onmessage = function (event) { - $('#rawmsg').append(event.data + "\n"); msg = $.parseJSON(event.data) + if (msg.TYPE != "progress") { + $('#rawmsg').append(event.data + "<br />\n"); + } switch (msg.TYPE) { case "ack": $('#sessionid').val(msg.ID); |