mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-27 16:24:41 +08:00
impr(result): not automatically showing words for long tests
This should get rid of the lag that comes with loading a lot of word elements
This commit is contained in:
parent
d355b36cb9
commit
8f8872b522
1 changed files with 16 additions and 1 deletions
|
@ -26,6 +26,8 @@ import * as TestUI from "./test-ui";
|
|||
import * as TodayTracker from "./today-tracker";
|
||||
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 confetti from "canvas-confetti";
|
||||
import type { AnnotationOptions } from "chartjs-plugin-annotation";
|
||||
|
@ -829,7 +831,20 @@ export async function update(
|
|||
},
|
||||
125
|
||||
);
|
||||
if (Config.alwaysShowWordsHistory && !GlarsesMode.get()) {
|
||||
|
||||
const canQuickRestart = Misc.canQuickRestart(
|
||||
Config.mode,
|
||||
Config.words,
|
||||
Config.time,
|
||||
CustomText,
|
||||
CustomTextState.isCustomTextLong() ?? false
|
||||
);
|
||||
|
||||
if (
|
||||
Config.alwaysShowWordsHistory &&
|
||||
canQuickRestart &&
|
||||
!GlarsesMode.get()
|
||||
) {
|
||||
TestUI.toggleResultWords(true);
|
||||
}
|
||||
AdController.updateFooterAndVerticalAds(true);
|
||||
|
|
Loading…
Reference in a new issue