fixed uncaught exception

This commit is contained in:
Miodec 2022-01-31 23:20:26 +01:00
parent 5191e7fc1e
commit ac68c543b8

View file

@ -4,6 +4,7 @@ import Config from "./config";
import * as DB from "./db";
import * as TestTimer from "./test-timer";
import * as Misc from "./misc";
import * as UI from "./ui";
export let settings = null;
@ -16,8 +17,10 @@ function resetCaretPosition() {
let caret = $("#paceCaret");
let firstLetter = document
.querySelector("#words .word")
.querySelector("letter");
?.querySelector("#words .word")
?.querySelector("letter");
if (!firstLetter) return;
caret.stop(true, true).animate(
{