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) { switch (type) {
case 'ontime': { case 'ontime': {
// destructure known data from ontime // destructure known data from ontime
// see https://docs.getontime.no/api/osc-and-ws/ // see https://docs.getontime.no/api/data/runtime-data/
const { timer, playback } = payload; const { current, playback } = payload.timer;
updateTimerElement(playback, timer); updateTimerElement(playback, current);
break; break;
} }
case 'ontime-timer': { case 'ontime-timer': {