diff --git a/src/public/script.js b/src/public/script.js index 51dfd83..22e7bc4 100644 --- a/src/public/script.js +++ b/src/public/script.js @@ -423,11 +423,11 @@ function toggleRound(){ function resumeRound(){ ws_send({type:'resume_round'}); - // If linked (toggle ON) and timer stopped, resume it + // If linked (toggle ON) and timer stopped, resume it (preserve current value) if(document.getElementById('timer-tog').checked && !modTimerRunning){ - modTimerLoad(); modTimerRunning=true; document.getElementById('btn-timer-ss').textContent='PAUSE'; + broadcastTimerToPlayers(modTimerRemaining,true); modTimerInterval=setInterval(()=>{ modTimerRemaining--; renderModTimerDisplay();