From d43fcba221d26adf335033b7e21def3eda9904a7 Mon Sep 17 00:00:00 2001 From: Miodec Date: Thu, 11 Dec 2025 22:13:12 +0100 Subject: [PATCH 1/2] fix: background loader not showing --- frontend/src/ts/elements/loader.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: () => { From b9dd15005a96972d5c3249ebcf87b1c854bdf1ee Mon Sep 17 00:00:00 2001 From: Miodec Date: Thu, 11 Dec 2025 23:44:13 +0100 Subject: [PATCH 2/2] fix: typing issues when wikipedia was requesting words closes #7215 --- frontend/src/ts/input/helpers/word-navigation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 (