Renforce la transition du chrono vers cube

This commit is contained in:
2026-04-12 17:46:11 +02:00
parent 39ef9f039f
commit de962eb8a0

24
app.js
View File

@@ -183,8 +183,14 @@ function initChronoPage() {
return; return;
} }
if (!match.result && match.phase === "cube") { const goToCubePage = () => {
dirty = true;
persistMatch();
replaceTo("cube.html"); replaceTo("cube.html");
};
if (!match.result && match.phase === "cube") {
goToCubePage();
return; return;
} }
@@ -265,6 +271,10 @@ function initChronoPage() {
requestBlockClosure(match, "Cloture manuelle de la partie demandee par l'arbitre."); requestBlockClosure(match, "Cloture manuelle de la partie demandee par l'arbitre.");
dirty = true; dirty = true;
if (!match.result && match.phase === "cube") {
goToCubePage();
return;
}
render(); render();
}); });
@@ -338,6 +348,10 @@ function initChronoPage() {
} }
dirty = true; dirty = true;
if (!match.result && match.phase === "cube") {
goToCubePage();
return;
}
render(); render();
} }
@@ -350,7 +364,7 @@ function initChronoPage() {
} }
if (match.phase !== "block") { if (match.phase !== "block") {
navigateTo("cube.html"); goToCubePage();
return; return;
} }
@@ -432,8 +446,7 @@ function initChronoPage() {
} }
if (!match.result && match.phase === "cube") { if (!match.result && match.phase === "cube") {
persistMatch(); goToCubePage();
navigateTo("cube.html");
return; return;
} }
@@ -490,8 +503,7 @@ function initChronoPage() {
} }
if (!match.result && match.phase === "cube") { if (!match.result && match.phase === "cube") {
persistMatch(); goToCubePage();
navigateTo("cube.html");
return; return;
} }