trimming quotes

This commit is contained in:
Jack 2020-07-22 00:18:11 +01:00
parent 03135a71cb
commit 1770b11d34

View file

@ -332,7 +332,7 @@ function initWords() {
wordsList.push(customText[i]);
}
} else if (config.mode == "quote") {
randomQuote = quotes[Math.floor(Math.random() * quotes.length)];
randomQuote = quotes[Math.floor(Math.random() * quotes.length)].trim();
let w = randomQuote.text.split(" ");
for (let i = 0; i < w.length; i++) {
wordsList.push(w[i]);