Skip to content

Commit

Permalink
Merge pull request #64 from Nuclear-Squid/bugfix
Browse files Browse the repository at this point in the history
bugfix: JS error in Chromium
  • Loading branch information
Nuclear-Squid authored Feb 16, 2024
2 parents 1e7d764 + 8f55c90 commit 6aecb91
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 6aecb91

Please sign in to comment.