Commit b2f01a52 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix URL in ServerConnection.connect.

parent 5a4db628
...@@ -204,9 +204,7 @@ ServerConnection.prototype.connect = function(url) { ...@@ -204,9 +204,7 @@ ServerConnection.prototype.connect = function(url) {
} }
try { try {
sc.socket = new WebSocket( sc.socket = new WebSocket(url);
`ws${location.protocol === 'https:' ? 's' : ''}://${location.host}/ws`,
);
} catch(e) { } catch(e) {
return Promise.reject(e); return Promise.reject(e);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment