component/app: Automatically prepend wss to server URL if unspecified

This commit is contained in:
delthas authored and Simon Ser committed 2021-06-20 21:08:02 +02:00
1 parent f8060c9be2
commit edbf294380
1 file changed
+3
+3
View File
@@ -76,6 +76,9 @@ function fillConnectParams(params) {
if (params.url.startsWith("/")) {
params.url = proto + "//" + host + params.url;
}
if (params.url.indexOf("://") < 0) {
params.url = proto + "//" + params.url;
}
if (!params.username) {
params.username = params.nick;
}