mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-23 00:06:17 -04:00
update editableOptions wrapper
This commit is contained in:
parent
ffb65d8ea1
commit
c90f30a7a1
2 changed files with 20 additions and 0 deletions
|
@ -56,6 +56,9 @@ function transformArgs(originalArgs, newArgs) {
|
|||
if (["toggleString"].indexOf(argument.type) > -1) {
|
||||
argument.string = newArgs[key].string;
|
||||
argument.option = newArgs[key].option;
|
||||
} else if (argument.type === "editableOption") {
|
||||
// takes key: "option", key: {name, val: "string"}, key: {name, val: [...]}
|
||||
argument.value = typeof newArgs[key] === "string" ? newArgs[key]: newArgs[key].value;
|
||||
} else {
|
||||
argument.value = newArgs[key];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue