mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-12 06:33:22 +08:00
showing active language above words in more cases
This commit is contained in:
parent
bc692f0108
commit
e366c93ce8
1 changed files with 6 additions and 1 deletions
|
@ -483,7 +483,12 @@ export function updateModesNotice() {
|
|||
|
||||
// /^[0-9a-zA-Z_.-]+$/.test(name);
|
||||
|
||||
if (/_\d+k$/g.test(Config.language) && Config.mode !== "quote") {
|
||||
if (
|
||||
(/_\d+k$/g.test(Config.language) ||
|
||||
/code_/g.test(Config.language) ||
|
||||
Config.language == "english_commonly_misspelled") &&
|
||||
Config.mode !== "quote"
|
||||
) {
|
||||
$(".pageTest #testModesNotice").append(
|
||||
`<div class="text-button" commands="commandsLanguages"><i class="fas fa-globe-americas"></i>${Config.language.replace(
|
||||
/_/g,
|
||||
|
|
Loading…
Reference in a new issue