Warm only once per session
authorLaurent Mazet <mazet@softndesign.org>
Mon, 26 Apr 2021 22:07:07 +0000 (00:07 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Mon, 26 Apr 2021 22:07:07 +0000 (00:07 +0200)
public/trivabble.js

index d0d4251fc8478c0c735e6f83bf4e3252be93537f..721f9fa10fa4152849652fb2628c0d8f271ebaba 100644 (file)
     let boardLabelSelect;
     const downloadedDictionaries = {};
     const boardDef = {nbRows: 0, nbColumns: 0, rackLength: 0};
-
+    let warningCustomBoard = false;
     const playerLetters = [];
     let currentPlayer = "";
 
                             ? format(_("You changed the board to {0} for language {1}"), newLabel, newLang)
                             : format(_("{0} changed the board to {1} for language {2}"), msg.sender, newLabel, newLang)
                     );
-                    if (newLabel !== "15x15-7") {
+                    if ((newLabel !== "15x15-7") && (!warningCustomBoard)) {
                         infoMessage(_("Caution, this feature is experimental; any feedback will be appreciated"));
+                        warningCustomBoard = true;
                     }
                     break;
                 }