1
Fork 0

Fix undefined disconnectbutton variable.

Commit 8257a7f "Remove dead variables." was wrong in that it deleted
the 'diconnect' [sic] variable definition, and left the
'disconnectbutton' variable undefined.
This commit is contained in:
Antonin Décimo 2020-05-14 12:24:23 +02:00 committed by Juliusz Chroboczek
parent 6efd6007f1
commit c52fa75686
1 changed files with 1 additions and 0 deletions

View File

@ -93,6 +93,7 @@ function getUsername() {
function setConnected(connected) {
let statspan = document.getElementById('statspan');
let userform = document.getElementById('userform');
let disconnectbutton = document.getElementById('disconnectbutton');
if(connected) {
clearError();
statspan.textContent = 'Connected';