From c52fa75686da53e03a3c860c5cae84315473aa09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonin=20D=C3=A9cimo?= Date: Thu, 14 May 2020 12:24:23 +0200 Subject: [PATCH] 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. --- static/sfu.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/sfu.js b/static/sfu.js index 5b48773..ed0693a 100644 --- a/static/sfu.js +++ b/static/sfu.js @@ -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';