[mirotalksfu] - #124 keep room name through authentication

هذا الالتزام موجود في:
Miroslav Pejic
2023-09-05 08:43:51 +02:00
الأصل 43d9acd207
التزام 6b08df99bc
2 ملفات معدلة مع 15 إضافات و4 حذوفات

عرض الملف

@@ -105,9 +105,12 @@
</div>
</div>
<script>
let usernameInput = document.getElementById('username');
let passwordInput = document.getElementById('password');
let loginBtn = document.getElementById('loginButton');
const usernameInput = document.getElementById('username');
const passwordInput = document.getElementById('password');
const loginBtn = document.getElementById('loginButton');
const qs = new URLSearchParams(window.location.search);
const room = filterXSS(qs.get('room'));
usernameInput.onkeyup = (e) => {
if (e.keyCode === 13) {
@@ -138,7 +141,7 @@
})
.then(function (response) {
console.log(response);
window.location.href = '/logged';
window.location.href = '/logged/?room=' + room;
})
.catch(function (error) {
console.error(error);