mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 13:27:49 +08:00
forcing letter highlight for nospace funbox
This commit is contained in:
parent
e3abc6e3c4
commit
520b8e13a1
2 changed files with 5 additions and 0 deletions
|
@ -349,6 +349,7 @@ function activateFunbox(funbox, mode) {
|
|||
}
|
||||
} else if (funbox === "nospace") {
|
||||
$("#words").addClass("nospace");
|
||||
setHighlightMode("letter", true);
|
||||
restartTest(false, true);
|
||||
}
|
||||
activeFunBox = funbox;
|
||||
|
|
|
@ -768,6 +768,10 @@ function toggleShowLiveWpm() {
|
|||
}
|
||||
|
||||
function setHighlightMode(mode, nosave) {
|
||||
if (activeFunBox === "nospace" && mode === "word") {
|
||||
Misc.showNotification("Can't use word highlight with nospace funbox", 3000);
|
||||
return;
|
||||
}
|
||||
if (mode == null || mode == undefined) {
|
||||
mode = "letter";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue