We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c16795 commit 900acfeCopy full SHA for 900acfe
1 file changed
public/js/script.js
@@ -163,6 +163,9 @@ function buildSentences() {
163
function addWord() {
164
let language = words[config.language]
165
let randomWord = language[Math.floor(Math.random() * language.length)];
166
+ while (randomWord.indexOf(' ') > -1) {
167
+ randomWord = language[Math.floor(Math.random() * language.length)];
168
+ }
169
wordsList.push(randomWord);
170
let w = "<div class='word'>";
171
for (let c = 0; c < randomWord.length; c++) {
0 commit comments