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