This commit is contained in:
2026-01-07 05:26:56 +09:00
parent c21bbb779f
commit db1c4958ea
6 changed files with 301 additions and 137 deletions

View File

@@ -412,8 +412,9 @@
// Show room preview
previewDiv.style.display = 'block';
document.getElementById('previewId').textContent = result.room.id;
const wsProto = window.location.protocol === 'https:' ? 'wss' : 'ws';
document.getElementById('previewWsUrl').textContent =
`ws://${window.location.hostname}:{{ server_port }}/ws/client/${result.room.id}/${result.room.password}`;
`${wsProto}://${window.location.hostname}:{{ server_port }}/ws/client/${result.room.id}/${result.room.password}`;
// Clear form
this.reset();