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) {
}
try {
sc.socket = new WebSocket(
`ws${location.protocol === 'https:' ? 's' : ''}://${location.host}/ws`,
);
sc.socket = new WebSocket(url);
} catch(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