set mode variable
authorLaurent Mazet <mazet@softndesign.org>
Mon, 26 Apr 2021 04:22:31 +0000 (06:22 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Mon, 26 Apr 2021 04:22:31 +0000 (06:22 +0200)
public/trivabble.js

index 5dff925840b20c5a99bcdc478722d8a3a81e8d52..1d8ea9c74a635e61f16249de3f440e551741932b 100644 (file)
         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);
         };
     }