mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-19 06:29:04 +08:00
better crown fix
This commit is contained in:
parent
88067f47a6
commit
6e237a3d15
1 changed files with 2 additions and 3 deletions
|
|
@ -1908,6 +1908,8 @@ function showResult(difficultyFailed = false) {
|
|||
config.language,
|
||||
config.difficulty
|
||||
).then((highestwpm) => {
|
||||
hideCrown();
|
||||
$("#result .stats .wpm .crown").attr('aria-label', '');
|
||||
if (lpb < stats.wpm && stats.wpm < highestwpm) {
|
||||
dontShowCrown = true;
|
||||
}
|
||||
|
|
@ -1918,9 +1920,6 @@ function showResult(difficultyFailed = false) {
|
|||
hideCrown();
|
||||
showCrown();
|
||||
$("#result .stats .wpm .crown").attr('aria-label', '+' + roundTo2(pbDiff));
|
||||
} else {
|
||||
hideCrown();
|
||||
$("#result .stats .wpm .crown").attr('aria-label', '');
|
||||
}
|
||||
localPb = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue