Removed unnecessary comment about assuming log contains nodeId.

This commit is contained in:
Benjamin Arntzen
2024-06-27 06:00:23 +01:00
committed by Benjamin Arntzen (aider)
parent 4de54c9e06
commit 4b7a032edf
-1
View File
@@ -37,7 +37,6 @@
ws.onmessage = (event) => {
const log = JSON.parse(event.data);
// Assuming log contains nodeId to identify which node to light up
const nodeId = log.nodeId;
if (nodeId >= 0 && nodeId < 50) {
nodes[nodeId].style.backgroundColor = 'green';