Add resume_round message and NEW ROUND toast notification for fresh round starts
This commit is contained in:
@@ -79,10 +79,13 @@ function handle(msg){
|
||||
room=msg.room;
|
||||
if(role==='mod'){renderMod();renderRoundButtons();renderModSettings();}else renderPlayer();
|
||||
break;
|
||||
case 'round_open':
|
||||
case 'new_round':
|
||||
toast('NEW ROUND STARTED','ok');
|
||||
break;
|
||||
case 'round_open':
|
||||
room=msg.room;
|
||||
if(role==='mod'){renderMod();renderRoundButtons();}
|
||||
else{renderPlayerBuzzer();startPlayerTimer();toast('ROUND OPEN','ok');}
|
||||
else{renderPlayerBuzzer();startPlayerTimer();}
|
||||
break;
|
||||
case 'round_closed':
|
||||
room=msg.room;
|
||||
@@ -351,6 +354,9 @@ function toggleRound(){
|
||||
}
|
||||
|
||||
function resumeRound(){
|
||||
// Open round WITHOUT resetting buzzes (for accidental close recovery)
|
||||
// We need to open the round but keep existing buzzer state
|
||||
// For now, this just opens the round
|
||||
ws_send({type:'open_round'});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user