fix error from develop (mode does not exists) and set cell captions after drawing board

This commit is contained in:
Laurent Mazet 2021-04-24 22:08:56 +02:00
parent 915f84a4ff
commit e24f694a1e
1 changed files with 3 additions and 1 deletions

View File

@ -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() {