mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-10 13:44:27 +08:00
formatting
This commit is contained in:
parent
2c800a6e00
commit
cd08c0011e
1 changed files with 7 additions and 4 deletions
|
@ -304,7 +304,10 @@ function activateFunbox(funbox, mode) {
|
|||
}
|
||||
if (currentLanguage.ligatures) {
|
||||
if (funbox == "choo_choo" || funbox == "earthquake") {
|
||||
showNotification("Current language does not support this funbox mode", 3000);
|
||||
showNotification(
|
||||
"Current language does not support this funbox mode",
|
||||
3000
|
||||
);
|
||||
activateFunbox("none", null);
|
||||
return;
|
||||
}
|
||||
|
@ -316,7 +319,7 @@ function activateFunbox(funbox, mode) {
|
|||
memoryFunboxTimer = null;
|
||||
$("#wordsWrapper").removeClass("hidden");
|
||||
}
|
||||
|
||||
|
||||
if (mode === "style") {
|
||||
if (funbox != undefined) {
|
||||
$("#funBoxTheme").attr("href", `funbox/${funbox}.css`);
|
||||
|
@ -573,9 +576,9 @@ async function initWords() {
|
|||
arrangeCharactersRightToLeft();
|
||||
}
|
||||
if (language.ligatures) {
|
||||
$("#words").addClass('withLigatures');
|
||||
$("#words").addClass("withLigatures");
|
||||
} else {
|
||||
$("#words").removeClass('withLigatures');
|
||||
$("#words").removeClass("withLigatures");
|
||||
}
|
||||
showWords();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue