mirror of
https://github.com/jech/galene.git
synced 2024-11-22 08:35:57 +01:00
Fill login box after a reload.
This commit is contained in:
parent
b7aea3a4d1
commit
e17d97100b
1 changed files with 10 additions and 5 deletions
|
@ -250,6 +250,14 @@ function closeVideoControls() {
|
|||
document.getElementById('collapse-video').style.display = "";
|
||||
}
|
||||
|
||||
function fillLogin() {
|
||||
let userpass = getUserPass();
|
||||
getInputElement('username').value =
|
||||
userpass ? userpass.username : '';
|
||||
getInputElement('password').value =
|
||||
userpass ? userpass.password : '';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param{boolean} connected
|
||||
*/
|
||||
|
@ -264,11 +272,7 @@ function setConnected(connected) {
|
|||
displayUsername();
|
||||
} else {
|
||||
resetUsers();
|
||||
let userpass = getUserPass();
|
||||
getInputElement('username').value =
|
||||
userpass ? userpass.username : '';
|
||||
getInputElement('password').value =
|
||||
userpass ? userpass.password : '';
|
||||
fillLogin();
|
||||
userbox.classList.add('invisible');
|
||||
connectionbox.classList.remove('invisible');
|
||||
displayError('Disconnected', 'error');
|
||||
|
@ -2299,6 +2303,7 @@ function start() {
|
|||
|
||||
setMediaChoices(false).then(e => reflectSettings());
|
||||
|
||||
fillLogin();
|
||||
document.getElementById("login-container").classList.remove('invisible');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue