fixed gibberish not adding gibberish. fixed #269

This commit is contained in:
Jack 2020-08-11 01:10:15 +01:00
parent d27207a256
commit a6ddadfc69

View file

@ -570,10 +570,9 @@ function addWord() {
randomWord = punctuateWord(previousWord, randomWord, wordsList.length, 0);
}
if (activeFunBox === "gibberish") {
wordsList.push(getGibberish());
} else {
wordsList.push(randomWord);
randomWord = getGibberish();
}
wordsList.push(randomWord);
let w = "<div class='word'>";
for (let c = 0; c < randomWord.length; c++) {