diff --git a/frontend/src/ts/elements/loader.ts b/frontend/src/ts/elements/loader.ts index 929fcdcb5a51..7af07638075e 100644 --- a/frontend/src/ts/elements/loader.ts +++ b/frontend/src/ts/elements/loader.ts @@ -1,4 +1,4 @@ -import { animate, JSAnimation } from "animejs"; +import { JSAnimation } from "animejs"; import { requestDebouncedAnimationFrame } from "../utils/debounced-animation-frame"; import { qsr } from "../utils/dom"; @@ -7,7 +7,7 @@ let showAnim: JSAnimation | null = null; export function show(instant = false): void { requestDebouncedAnimationFrame("loader.show", () => { - showAnim = animate(element, { + showAnim = element.animate({ opacity: 1, duration: 125, delay: instant ? 0 : 125, @@ -21,7 +21,7 @@ export function show(instant = false): void { export function hide(): void { requestDebouncedAnimationFrame("loader.hide", () => { showAnim?.pause(); - animate(element, { + element.animate({ opacity: 0, duration: 125, onComplete: () => { diff --git a/frontend/src/ts/input/helpers/word-navigation.ts b/frontend/src/ts/input/helpers/word-navigation.ts index ff88066fe924..0881ff6b87ee 100644 --- a/frontend/src/ts/input/helpers/word-navigation.ts +++ b/frontend/src/ts/input/helpers/word-navigation.ts @@ -75,7 +75,7 @@ export async function goToNextWord({ Loader.hide(); setAwaitingNextWord(false); } else { - await TestLogic.addWord(); + void TestLogic.addWord(); } if (