From 27f010fc8c17cd48ba25266df29c191b09d76a53 Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Tue, 27 Apr 2021 00:07:07 +0200 Subject: [PATCH] Warm only once per session --- public/trivabble.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/trivabble.js b/public/trivabble.js index d0d4251..721f9fa 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -189,7 +189,7 @@ let boardLabelSelect; const downloadedDictionaries = {}; const boardDef = {nbRows: 0, nbColumns: 0, rackLength: 0}; - + let warningCustomBoard = false; const playerLetters = []; let currentPlayer = ""; @@ -932,8 +932,9 @@ ? 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; }