Fix wsurl construction

This commit is contained in:
Tony Garnock-Jones 2021-12-24 17:28:55 -05:00
parent 665d5ab219
commit 8f2d598201
1 changed files with 1 additions and 1 deletions

View File

@ -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/`;
}
}