Skip to content

Commit

Permalink
lint issue fix [issue: monkeytypegame#3907]
Browse files Browse the repository at this point in the history
  • Loading branch information
kanjariya-harsh committed Aug 23, 2023
1 parent b826b05 commit b964aca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/src/ts/test/test-ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,9 @@ function getWordHTML(word: string): string {
}
}
retval += "</div>";
if (newlineafter)
if (newlineafter) {
retval += "<div class='newline'></div><div class='after-newline'></div>";
}
return retval;
}

Expand Down Expand Up @@ -692,10 +693,11 @@ export function updateWordElement(showError = !Config.blindMode): void {
}
}
wordAtIndex.innerHTML = ret;
if (newlineafter)
if (newlineafter) {
$("#words").append(
"<div class='newline'></div><div class='after-newline'></div>"
);
}
}

export function scrollTape(): void {
Expand Down

0 comments on commit b964aca

Please sign in to comment.