Only set the power state, not the entire state code lol

This commit is contained in:
Skylar Grant 2024-08-15 11:44:10 -04:00
parent 1c37b63314
commit b62eebbe0f

View File

@ -74,7 +74,7 @@ export class Communicator {
const msgJson = JSON.parse(msgStr);
console.log(`Message received on topic ${topic}: ${msgStr}`);
console.log(msgJson);
state[msgJson.name] = msgJson;
state[msgJson.name].on = msgJson.on;
window.refreshState(window.document, state);
});
}