fix(multi): redirect to lobby after next round and reset game; keep article detail links visible
This commit is contained in:
@@ -50,7 +50,7 @@ function cleanWikiHtml(container: HTMLElement): void {
|
|||||||
.forEach((el) => el.remove());
|
.forEach((el) => el.remove());
|
||||||
container
|
container
|
||||||
.querySelectorAll(
|
.querySelectorAll(
|
||||||
".ambox, .tmbox, .cmbox, .ombox, .fmbox, .hatnote, .bandeau-container, .bandeau",
|
".ambox, .tmbox, .cmbox, .ombox, .fmbox, .bandeau-container, .bandeau",
|
||||||
)
|
)
|
||||||
.forEach((el) => el.remove());
|
.forEach((el) => el.remove());
|
||||||
container
|
container
|
||||||
|
|||||||
@@ -85,12 +85,12 @@ export function useGameHandlers({
|
|||||||
|
|
||||||
async function handleNextRound() {
|
async function handleNextRound() {
|
||||||
await multi.nextRound();
|
await multi.nextRound();
|
||||||
// On reste sur "game" - le GameScreen affiche le lobby quand phase === "waiting"
|
setScreen("lobby");
|
||||||
}
|
}
|
||||||
|
|
||||||
async function handleResetGame() {
|
async function handleResetGame() {
|
||||||
await multi.resetGame();
|
await multi.resetGame();
|
||||||
// On reste sur "game" - le GameScreen affiche le lobby quand phase === "waiting"
|
setScreen("lobby");
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleLeave() {
|
function handleLeave() {
|
||||||
|
|||||||
Reference in New Issue
Block a user