Skip to content

Commit

Permalink
bugfix: JS error in Chromium
Browse files Browse the repository at this point in the history
  • Loading branch information
fabi1cazenave committed Feb 16, 2024
1 parent 1e7d764 commit 8f55c90
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/dactylo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8f55c90

Please sign in to comment.