mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-11 22:23:32 +08:00
fixed uncaught exception
This commit is contained in:
parent
5191e7fc1e
commit
ac68c543b8
1 changed files with 5 additions and 2 deletions
|
@ -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(
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue