Fix countdown timer: poll timer state periodically and send updates to overlay

parent dd151fba
......@@ -571,6 +571,13 @@ class WebOverlayController {
}
}
// Also fetch timer state on each poll
const timerState = await this.fetchTimerState();
if (timerState && (timerState.running || this.timerState.running)) {
// Send timer update if timer is running or was running
this.sendMessageToOverlay('timerUpdate', timerState);
}
return response;
} catch (error) {
console.error('[OverlayController] Failed to fetch overlay data:', error);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment