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:
committed by
Juliusz Chroboczek
parent
6efd6007f1
commit
c52fa75686
@@ -93,6 +93,7 @@ function getUsername() {
|
|||||||
function setConnected(connected) {
|
function setConnected(connected) {
|
||||||
let statspan = document.getElementById('statspan');
|
let statspan = document.getElementById('statspan');
|
||||||
let userform = document.getElementById('userform');
|
let userform = document.getElementById('userform');
|
||||||
|
let disconnectbutton = document.getElementById('disconnectbutton');
|
||||||
if(connected) {
|
if(connected) {
|
||||||
clearError();
|
clearError();
|
||||||
statspan.textContent = 'Connected';
|
statspan.textContent = 'Connected';
|
||||||
|
|||||||
Reference in New Issue
Block a user