impr: clearing funbox in the middle of the test finish animation

this will make sure funboxes like mirror clear while neither the test or result page are visible
This commit is contained in:
Miodec 2024-02-05 15:24:10 +01:00
parent 63c3b6773f
commit bfda00166c
2 changed files with 2 additions and 1 deletions

View file

@ -24,6 +24,7 @@ import * as ConfigEvent from "../observables/config-event";
import * as Focus from "./focus";
import * as CustomText from "./custom-text";
import * as CustomTextState from "./../states/custom-text-name";
import * as Funbox from "./funbox/funbox";
import confetti from "canvas-confetti";
import type { AnnotationOptions } from "chartjs-plugin-annotation";
@ -860,6 +861,7 @@ export async function update(
TestUI.toggleResultWords(true);
}
AdController.updateFooterAndVerticalAds(true);
Funbox.clear();
}
);
}

View file

@ -887,7 +887,6 @@ export async function finish(difficultyFailed = false): Promise<void> {
TimerProgress.hide();
OutOfFocus.hide();
TestTimer.clear();
Funbox.clear();
Monkey.hide();
ModesNotice.update();