From df930fa3740e2a595fae547fe9cdb88ec49fe715 Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Mon, 26 Apr 2021 06:22:31 +0200 Subject: [PATCH] set mode variable --- public/trivabble.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }; }