mirror of
https://github.com/Blah-IM/blahrs.git
synced 2025-05-01 00:31: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');
|
||||
wsUrl.protocol = wsUrl.protocol == 'http:' ? 'ws:' : 'wss:';
|
||||
wsUrl.pathname = '/ws';
|
||||
wsUrl.pathname += '/ws';
|
||||
ws = new WebSocket(wsUrl);
|
||||
ws.onopen = async (_) => {
|
||||
const auth = await signData({ typ: 'auth' });
|
||||
|
@ -267,7 +267,7 @@ async function loadRoomList(autoJoin) {
|
|||
el.innerText = `${title} (uuid=${ruuid}, attrs=${attrs})`;
|
||||
targetEl.appendChild(el);
|
||||
}
|
||||
} catch (e) {
|
||||
} catch (err) {
|
||||
log(`failed to load room list: ${err}`)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue