summaryrefslogtreecommitdiff
path: root/proto.js
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2019-02-08 20:26:14 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2019-02-09 15:40:28 +0100
commit1ae51ff94d0f1f27a4e4cc657371578db13c3ca1 (patch)
treef383cb73afa171ac10ab91eafea9f11804042744 /proto.js
parentfb958041310617c7aeef36a8dc9041e2a51fae6d (diff)
Make code compile again (fix bitrot dating back from 2013).
Diffstat (limited to 'proto.js')
-rw-r--r--proto.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto.js b/proto.js
index 73d9894..4feeceb 100644
--- a/proto.js
+++ b/proto.js
@@ -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", {