Fix URL in ServerConnection.connect.
This commit is contained in:
+1
-3
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user