From e24f694a1e49abb1eee94ab2c44e75dad1639c4e Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Sat, 24 Apr 2021 22:08:56 +0200 Subject: [PATCH] fix error from develop (mode does not exists) and set cell captions after drawing board --- public/trivabble.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/trivabble.js b/public/trivabble.js index 93699af..2630de9 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -2364,7 +2364,8 @@ setCellCaptions(getSetting("CELL_CAPTIONS")); document.getElementById("cell-captions").onchange = function () { - setCellCaptions(document.getElementById("cell-captions").value); + const mode = document.getElementById("cell-captions").value; + setCellCaptions(mode); setSetting("CELL_CAPTIONS", mode); }; } @@ -2618,6 +2619,7 @@ playerLetters.push(span); } + setCellCaptions(getSetting("CELL_CAPTIONS")); } function initLang() {