#3487 - Remove language mode notice in zen mode (#3527) sondrekje

# Please enter the commit message for your changes. Lines starting
# with '#' will be kept; you may remove them yourself if you want to.
# An empty message aborts the commit.
#
# Date:      Fri Sep 9 18:28:31 2022 +0200
#
# On branch noLanguageNoticeZenMode
# Changes to be committed:
#	modified:   frontend/src/ts/elements/modes-notice.ts
#
This commit is contained in:
Sondre Kjempekjenn 2022-09-10 10:31:57 +02:00 committed by GitHub
parent 82801fe36f
commit 36a41325d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,12 +63,14 @@ export async function update(): Promise<void> {
);
}
$(".pageTest #testModesNotice").append(
`<div class="textButton" commands="commandsLanguages"><i class="fas fa-globe-americas"></i>${Config.language.replace(
/_/g,
" "
)}</div>`
);
if (Config.mode !== "zen") {
$(".pageTest #testModesNotice").append(
`<div class="textButton" commands="commandsLanguages"><i class="fas fa-globe-americas"></i>${Config.language.replace(
/_/g,
" "
)}</div>`
);
}
if (Config.difficulty === "expert") {
$(".pageTest #testModesNotice").append(