From 8f55c9039959730fc152eec0b45d01aa9aebe7b1 Mon Sep 17 00:00:00 2001 From: Fabien Cazenave Date: Fri, 16 Feb 2024 05:58:41 +0100 Subject: [PATCH] bugfix: JS error in Chromium --- js/dactylo.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/dactylo.js b/js/dactylo.js index 654f3d8d..ae068c34 100644 --- a/js/dactylo.js +++ b/js/dactylo.js @@ -112,7 +112,9 @@ window.addEventListener('DOMContentLoaded', () => { Array.from(word).every(letter => lessonLetters.indexOf(letter) >= 0); gLessonWords = []; - for (dict of [gDictionary.words, gDictionary.trigrams, gDictionary.bigrams, rawLetters]) { + for (const dict of [ + gDictionary.words, gDictionary.trigrams, gDictionary.bigrams, rawLetters + ]) { gLessonWords = gLessonWords.concat(dict.filter(lessonFilter)); if (gLessonWords.length > MIN_WORD_COUNT) { break;