fixed infinite loop causing website to freeze

This commit is contained in:
Jack 2021-09-28 18:51:57 +01:00
parent d089a773f7
commit 3d9c5f1fb1

View file

@ -1137,8 +1137,7 @@ export async function addWord() {
!CustomText.isTimeRandom
) {
randomWord = CustomText.text[words.length];
}
if (Config.mode === "quote") {
} else if (Config.mode === "quote") {
randomWord = randomQuote.textSplit[words.length];
} else {
while (