mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-11 13:57:28 +08:00
removed debug logs and added code that fills in the popup
This commit is contained in:
parent
2d71a8f196
commit
a38e148a97
1 changed files with 4 additions and 2 deletions
|
|
@ -1497,8 +1497,6 @@ export function finish(difficultyFailed = false) {
|
|||
).then((highestwpm) => {
|
||||
PbCrown.hide();
|
||||
$("#result .stats .wpm .crown").attr("aria-label", "");
|
||||
console.log(`crown debug: local pb ${lpb}`);
|
||||
console.log(`crown debug: local highest wpm ${highestwpm}`);
|
||||
if (lpb < stats.wpm && stats.wpm < highestwpm) {
|
||||
dontShowCrown = true;
|
||||
}
|
||||
|
|
@ -1729,6 +1727,10 @@ export function finish(difficultyFailed = false) {
|
|||
if (e.data.resultCode === 2) {
|
||||
//new pb
|
||||
PbCrown.show();
|
||||
$("#result .stats .wpm .crown").attr(
|
||||
"aria-label",
|
||||
"+" + Misc.roundTo2(pbDiff)
|
||||
);
|
||||
DB.saveLocalPB(
|
||||
Config.mode,
|
||||
mode2,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue