Fix wsurl construction
This commit is contained in:
parent
665d5ab219
commit
8f2d598201
|
@ -94,7 +94,7 @@ function bootChat(ds: Ref) {
|
||||||
function setWsurl() {
|
function setWsurl() {
|
||||||
const wsurl = document.getElementById('wsurl')! as HTMLInputElement;
|
const wsurl = document.getElementById('wsurl')! as HTMLInputElement;
|
||||||
if (wsurl.value === '') {
|
if (wsurl.value === '') {
|
||||||
wsurl.value = `ws://${document.location.host}:9001/`;
|
wsurl.value = `ws://${document.location.hostname}:9001/`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue