mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-10 17:04:49 +08:00
lowercasing custom layoutfluid
updating settings input
This commit is contained in:
parent
3556fed524
commit
086b2d20a5
1 changed files with 4 additions and 4 deletions
|
@ -1407,10 +1407,7 @@ export function setCustomLayoutfluid(value, nosave) {
|
|||
value = "qwerty#dvorak#colemak";
|
||||
}
|
||||
value = value.replace(/ /g, "#");
|
||||
value
|
||||
.split("#")
|
||||
.map((l) => (l = l.toLowerCase()))
|
||||
.join("#");
|
||||
value = value.toLowerCase();
|
||||
|
||||
//validate the layouts
|
||||
let allGood = true;
|
||||
|
@ -1430,6 +1427,9 @@ export function setCustomLayoutfluid(value, nosave) {
|
|||
CommandlineLists.defaultCommands.list.filter(
|
||||
(command) => command.id == "changeCustomLayoutfluid"
|
||||
)[0].defaultValue = value.replace(/#/g, " ");
|
||||
$(".pageSettings .section.customLayoutfluid input").val(
|
||||
value.replace(/#/g, " ")
|
||||
);
|
||||
if (!nosave) saveToLocalStorage();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue