fix error from develop (mode does not exists) and set cell captions after drawing...
authorLaurent Mazet <mazet@softndesign.org>
Sat, 24 Apr 2021 20:08:56 +0000 (22:08 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Sat, 24 Apr 2021 20:09:49 +0000 (22:09 +0200)
public/trivabble.js

index 93699afc24ec4d68249392416a55965dcc112346..2630de9d10d299f86a8dbc2218e8da4f9485cccf 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);
         };
     }
             playerLetters.push(span);
         }
 
+        setCellCaptions(getSetting("CELL_CAPTIONS"));
     }
 
     function initLang() {