This commit is contained in:
Henry Jameson 2026-01-14 15:41:54 +02:00
commit 9ca2e84847

View file

@ -68,7 +68,7 @@ const loop = async () => {
); );
const { state } = await response.json(); const { state } = await response.json();
const isLive = state.id === 1; // published const isLive = state.id === 1; // published
console.info('Live: ', isLive, currentlyLive) console.info('Live: ', isLive, globalState.currentlyLive)
const stateChange = isLive !== globalState.currentlyLive; const stateChange = isLive !== globalState.currentlyLive;
console.info('State change', stateChange) console.info('State change', stateChange)
globalState.currentlyLive = isLive; globalState.currentlyLive = isLive;