mirror of
https://github.com/jech/galene.git
synced 2024-11-22 16:45:58 +01:00
Fix URL in ServerConnection.connect.
This commit is contained in:
parent
5a4db62873
commit
b2f01a528e
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue