mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-10 13:44:27 +08:00
fixed master mode not showing last word when failed
This commit is contained in:
parent
0d79b3f1cf
commit
1b58209b70
1 changed files with 6 additions and 0 deletions
|
@ -3383,6 +3383,8 @@ $(document).keypress(function (event) {
|
|||
if (config.stopOnError && !thisCharCorrect) {
|
||||
if (config.difficulty == "master") {
|
||||
//failed due to master diff when pressing a key
|
||||
inputHistory.push(currentInput);
|
||||
correctedHistory.push(currentCorrected);
|
||||
showResult(true);
|
||||
let testNow = Date.now();
|
||||
let testSeconds = roundTo2((testNow - testStart) / 1000);
|
||||
|
@ -3668,6 +3670,8 @@ $(document).keydown((event) => {
|
|||
if (config.stopOnError) {
|
||||
if (config.difficulty == "expert" || config.difficulty == "master") {
|
||||
//failed due to diff when pressing space
|
||||
inputHistory.push(currentInput);
|
||||
correctedHistory.push(currentCorrected);
|
||||
showResult(true);
|
||||
// if (!afkDetected) {
|
||||
let testNow = Date.now();
|
||||
|
@ -3704,6 +3708,8 @@ $(document).keydown((event) => {
|
|||
config.difficulty == "master"
|
||||
) {
|
||||
//submitted last word incorrect and failed test
|
||||
inputHistory.push(currentInput);
|
||||
correctedHistory.push(currentCorrected);
|
||||
showResult(true);
|
||||
// if (!afkDetected) {
|
||||
let testNow = Date.now();
|
||||
|
|
Loading…
Reference in a new issue