Removed unnecessary comment about assuming log contains nodeId.
This commit is contained in:
committed by
Benjamin Arntzen (aider)
parent
4de54c9e06
commit
4b7a032edf
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user