fixed many remaining bugs in testbench webserver, should be ready for use.

This commit is contained in:
UpstreamData
2022-04-14 18:17:23 -06:00
committed by UpstreamData
parent 93f2990399
commit a6df7a83d6
8 changed files with 79 additions and 45 deletions

View File

@@ -238,7 +238,7 @@ ws.onmessage = function(event) {
}
light_switch.id = miner["IP"] + "-light"
light_switch.className = "form-check-input"
light_switch.addEventListener("click", function(){lightMiner(miner, light_switch);}, false);
light_switch.addEventListener("click", function(){lightMiner(miner["IP"], light_switch);}, false);
// add a light label to the button