diff --git a/public/trivabble.js b/public/trivabble.js index 5dff925..1d8ea9c 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -2315,7 +2315,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); }; }