1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-12-22 23:35:46 +01:00

Fix URL in ServerConnection.connect.

This commit is contained in:
Juliusz Chroboczek 2020-09-18 11:24:33 +02:00
parent 5a4db62873
commit b2f01a528e

View file

@ -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);
}