mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-04 04:51:16 +08:00
fixed a bug causing no new words to appear in time mode
This commit is contained in:
parent
2d3c5d35fe
commit
bbb82684c6
1 changed files with 2 additions and 1 deletions
|
@ -161,7 +161,8 @@ function buildSentences() {
|
|||
}
|
||||
|
||||
function addWord() {
|
||||
let randomWord = words[Math.floor(Math.random() * words.length)];
|
||||
let language = words[config.language]
|
||||
let randomWord = language[Math.floor(Math.random() * language.length)];
|
||||
wordsList.push(randomWord);
|
||||
let w = "<div class='word'>";
|
||||
for (let c = 0; c < randomWord.length; c++) {
|
||||
|
|
Loading…
Reference in a new issue