From: Benjamin Auder Date: Mon, 18 Jul 2022 13:18:19 +0000 (+0200) Subject: add delay for page reload X-Git-Url: https://git.auder.net/variants/current/doc/css/img/pieces/cq.svg?a=commitdiff_plain;h=383c05e26a0209478a4bb41d49379cebb838b7fc;p=xogo.git add delay for page reload --- diff --git a/TODO b/TODO index 40446da..78cb5dd 100644 --- a/TODO +++ b/TODO @@ -1,4 +1,4 @@ -Baroque Berolina Bicolour Brotherhood +Berolina Bicolour Brotherhood For Baroque (and Fugue and...) --> maybe a dedicated parent class ? Go game with option oneColor (révélée à la fin phase counting -->). diff --git a/app.js b/app.js index a8f447b..c5d5c7f 100644 --- a/app.js +++ b/app.js @@ -392,7 +392,7 @@ const messageCenter = (msg) => { break; case "filechange": // TODO?: could be more subtle - location.reload(); + setTimeout(() => location.reload(), 100); break; } };