mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-08 08:25:05 +08:00
impr(typing): always allow lazy mode when in custom mode, no matter the current language selection
closes #5071
This commit is contained in:
parent
81b388af4a
commit
8076acf333
2 changed files with 4 additions and 2 deletions
|
|
@ -471,7 +471,8 @@ export async function init(): Promise<void> {
|
|||
UpdateConfig.setTapeMode("off");
|
||||
}
|
||||
|
||||
if (Config.lazyMode && language.noLazyMode) {
|
||||
const allowLazyMode = !language.noLazyMode || Config.mode === "custom";
|
||||
if (Config.lazyMode && !allowLazyMode) {
|
||||
rememberLazyMode = true;
|
||||
Notifications.add("This language does not support lazy mode.", 0, {
|
||||
important: true,
|
||||
|
|
|
|||
|
|
@ -338,7 +338,8 @@ function applyLazyModeToWord(
|
|||
word: string,
|
||||
language: MonkeyTypes.LanguageObject
|
||||
): string {
|
||||
if (Config.lazyMode && !language.noLazyMode) {
|
||||
const allowLazyMode = !language.noLazyMode || Config.mode === "custom";
|
||||
if (Config.lazyMode && allowLazyMode) {
|
||||
word = LazyMode.replaceAccents(word, language.additionalAccents);
|
||||
}
|
||||
return word;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue