mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-11 18:04:27 +08:00
fixed language being null
This commit is contained in:
parent
0cf37b34a7
commit
80ef2744e1
1 changed files with 8 additions and 8 deletions
|
|
@ -1963,6 +1963,14 @@ function showResult(difficultyFailed = false) {
|
|||
|
||||
$("#result .stats .tags").addClass("hidden");
|
||||
|
||||
let lang = config.language;
|
||||
|
||||
let quoteLength = -1;
|
||||
if (config.mode === "quote") {
|
||||
quoteLength = randomQuote.group;
|
||||
lang = config.language.replace(/_\d*k$/g, "");
|
||||
}
|
||||
|
||||
if (difficultyFailed) {
|
||||
Notifications.add("Test failed", 0);
|
||||
} else if (afkDetected) {
|
||||
|
|
@ -2543,14 +2551,6 @@ function showResult(difficultyFailed = false) {
|
|||
$("#result .loginTip").removeClass("hidden");
|
||||
}
|
||||
|
||||
let lang = config.language;
|
||||
|
||||
let quoteLength = -1;
|
||||
if (config.mode === "quote") {
|
||||
quoteLength = randomQuote.group;
|
||||
lang = config.language.replace(/_\d*k$/g, "");
|
||||
}
|
||||
|
||||
let testType = "";
|
||||
|
||||
if (config.mode === "quote") {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue