Improve browser compatibility

This commit is contained in:
2020-12-11 08:21:11 +00:00
parent bcda8f8a4f
commit 45ee87b6eb
2 changed files with 7 additions and 8 deletions

View File

@@ -29,8 +29,7 @@
<script>
document.querySelector('form').addEventListener('submit', function(event) {
event.preventDefault();
let roomId = document.getElementById('roomId').value;
window.location = `//${window.location.host}/${roomId}`;
window.location = '//' + window.location.host + '/' + document.getElementById('roomId').value;
});
</script>
</body>