mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-08 13:11:19 +08:00
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:
parent
63c3b6773f
commit
bfda00166c
2 changed files with 2 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -887,7 +887,6 @@ export async function finish(difficultyFailed = false): Promise<void> {
|
|||
TimerProgress.hide();
|
||||
OutOfFocus.hide();
|
||||
TestTimer.clear();
|
||||
Funbox.clear();
|
||||
Monkey.hide();
|
||||
ModesNotice.update();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue