diff options
Diffstat (limited to 'proto.js')
-rw-r--r-- | proto.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6,7 +6,7 @@ function get_appropriate_ws_url() // From: https://gist.github.com/2428561 var parser = document.createElement('a'); parser.href = document.URL; - + // We open the websocket encrypted if this page came on an // https:// url itself, otherwise unencrypted if(parser.protocol == "http:") parser.protocol = "ws:"; @@ -27,7 +27,7 @@ try { cancelable: true }); document.dispatchEvent(connectEvent); - } + } socket_task.onmessage = function got_packet(msg) { var messageEvent = new CustomEvent("messageEvent", { |