From c81f5e8641ed932094dafadfc79e021a4edbc23c Mon Sep 17 00:00:00 2001 From: Chris Davoren Date: Wed, 10 Jan 2024 18:49:56 +1000 Subject: [PATCH] Removed obsolete line of JavaScript causing client-side code not to run. --- TrafficLightsSignalR/wwwroot/js/lights.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/TrafficLightsSignalR/wwwroot/js/lights.js b/TrafficLightsSignalR/wwwroot/js/lights.js index 0cddfe7..2ac90ca 100644 --- a/TrafficLightsSignalR/wwwroot/js/lights.js +++ b/TrafficLightsSignalR/wwwroot/js/lights.js @@ -7,9 +7,6 @@ var nextUpdateTime = null; var connection = new signalR.HubConnectionBuilder().withUrl("/lightHub").build(); -//Disable the send button until connection is established. -document.getElementById("sendButton").disabled = true; - connection.on("ReceiveStateUpdate", function (stateData) { console.log("Update pushed."); updateView(stateData);