mirror of
https://codeberg.org/emersion/gamja
synced 2025-04-22 01:23:56 +02:00
component/app: Automatically prepend wss to server URL if unspecified
This commit is contained in:
parent
f8060c9be2
commit
edbf294380
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user