fix(multi): redirect to lobby after next round and reset game; keep article detail links visible

This commit is contained in:
jessy-david-dev
2026-04-12 16:33:18 +02:00
parent 5627a4bb30
commit 05e5cb04b9
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ function cleanWikiHtml(container: HTMLElement): void {
.forEach((el) => el.remove());
container
.querySelectorAll(
".ambox, .tmbox, .cmbox, .ombox, .fmbox, .hatnote, .bandeau-container, .bandeau",
".ambox, .tmbox, .cmbox, .ombox, .fmbox, .bandeau-container, .bandeau",
)
.forEach((el) => el.remove());
container
+2 -2
View File
@@ -85,12 +85,12 @@ export function useGameHandlers({
async function handleNextRound() {
await multi.nextRound();
// On reste sur "game" - le GameScreen affiche le lobby quand phase === "waiting"
setScreen("lobby");
}
async function handleResetGame() {
await multi.resetGame();
// On reste sur "game" - le GameScreen affiche le lobby quand phase === "waiting"
setScreen("lobby");
}
function handleLeave() {