Skip to content

Commit

Permalink
impr: clearing funbox in the middle of the test finish animation
Browse files Browse the repository at this point in the history
this will make sure funboxes like mirror clear while neither the test or result page are visible
  • Loading branch information
Miodec committed Feb 5, 2024
1 parent 63c3b67 commit bfda001
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions frontend/src/ts/test/result.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -860,6 +861,7 @@ export async function update(
TestUI.toggleResultWords(true);
}
AdController.updateFooterAndVerticalAds(true);
Funbox.clear();
}
);
}
Expand Down
1 change: 0 additions & 1 deletion frontend/src/ts/test/test-logic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,6 @@ export async function finish(difficultyFailed = false): Promise<void> {
TimerProgress.hide();
OutOfFocus.hide();
TestTimer.clear();
Funbox.clear();
Monkey.hide();
ModesNotice.update();

Expand Down

0 comments on commit bfda001

Please sign in to comment.