1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-10 02:35:58 +01:00

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

View file

@ -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';