Commit c52fa756 authored by Antonin Décimo's avatar Antonin Décimo Committed by Juliusz Chroboczek

Fix undefined disconnectbutton variable.

Commit 8257a7ff "Remove dead variables." was wrong in that it deleted
the 'diconnect' [sic] variable definition, and left the
'disconnectbutton' variable undefined.
parent 6efd6007
...@@ -93,6 +93,7 @@ function getUsername() { ...@@ -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';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment