fix: demo page, update docs link and fix data destructuring (#932)

This commit is contained in:
Alex Christoffer Rasmussen
2024-05-02 12:17:08 +02:00
committed by GitHub
parent 8b0e03e980
commit 9644cbde92
+3 -3
View File
@@ -66,9 +66,9 @@ const connectSocket = () => {
switch (type) {
case 'ontime': {
// destructure known data from ontime
// see https://docs.getontime.no/api/osc-and-ws/
const { timer, playback } = payload;
updateTimerElement(playback, timer);
// see https://docs.getontime.no/api/data/runtime-data/
const { current, playback } = payload.timer;
updateTimerElement(playback, current);
break;
}
case 'ontime-timer': {