mirror of
https://github.com/Blah-IM/blahrs.git
synced 2025-05-01 08:41:09 +00:00
Fix frontend
This commit is contained in:
parent
57b17547ca
commit
cc51d53575
1 changed files with 2 additions and 2 deletions
|
@ -218,7 +218,7 @@ async function connectServer(newServerUrl) {
|
||||||
|
|
||||||
log('connecting server');
|
log('connecting server');
|
||||||
wsUrl.protocol = wsUrl.protocol == 'http:' ? 'ws:' : 'wss:';
|
wsUrl.protocol = wsUrl.protocol == 'http:' ? 'ws:' : 'wss:';
|
||||||
wsUrl.pathname = '/ws';
|
wsUrl.pathname += '/ws';
|
||||||
ws = new WebSocket(wsUrl);
|
ws = new WebSocket(wsUrl);
|
||||||
ws.onopen = async (_) => {
|
ws.onopen = async (_) => {
|
||||||
const auth = await signData({ typ: 'auth' });
|
const auth = await signData({ typ: 'auth' });
|
||||||
|
@ -267,7 +267,7 @@ async function loadRoomList(autoJoin) {
|
||||||
el.innerText = `${title} (uuid=${ruuid}, attrs=${attrs})`;
|
el.innerText = `${title} (uuid=${ruuid}, attrs=${attrs})`;
|
||||||
targetEl.appendChild(el);
|
targetEl.appendChild(el);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
log(`failed to load room list: ${err}`)
|
log(`failed to load room list: ${err}`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue