enable the join button when an error requesting the token occurs

This commit is contained in:
david 2021-06-02 11:32:04 +02:00
parent c7491223bf
commit 1e91ae1770
2 changed files with 4 additions and 0 deletions

View File

@ -174,6 +174,8 @@ function joinSession() {
})
.catch(error => {
console.warn('There was an error connecting to the session:', error.code, error.message);
document.getElementById("join-btn").disabled = false;
document.getElementById("join-btn").innerHTML = "Join!";
});
return false;

View File

@ -174,6 +174,8 @@ function joinSession() {
})
.catch(error => {
console.warn('There was an error connecting to the session:', error.code, error.message);
document.getElementById("join-btn").disabled = false;
document.getElementById("join-btn").innerHTML = "Join!";
});
return false;