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