mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
Added toggleString support
This commit is contained in:
parent
6bec68021c
commit
350d10d98b
2 changed files with 4 additions and 1 deletions
|
@ -21,6 +21,7 @@ class Ingredient {
|
||||||
this.name = "";
|
this.name = "";
|
||||||
this.type = "";
|
this.type = "";
|
||||||
this._value = null;
|
this._value = null;
|
||||||
|
this.toggleValues = [];
|
||||||
|
|
||||||
if (ingredientConfig) {
|
if (ingredientConfig) {
|
||||||
this._parseConfig(ingredientConfig);
|
this._parseConfig(ingredientConfig);
|
||||||
|
@ -38,6 +39,7 @@ class Ingredient {
|
||||||
this.name = ingredientConfig.name;
|
this.name = ingredientConfig.name;
|
||||||
this.type = ingredientConfig.type;
|
this.type = ingredientConfig.type;
|
||||||
this.defaultValue = ingredientConfig.value;
|
this.defaultValue = ingredientConfig.value;
|
||||||
|
this.toggleValues = ingredientConfig.toggleValues;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -172,7 +172,8 @@ class Operation {
|
||||||
return {
|
return {
|
||||||
name: ing.name,
|
name: ing.name,
|
||||||
type: ing.type,
|
type: ing.type,
|
||||||
value: ing.defaultValue
|
value: ing.defaultValue,
|
||||||
|
toggleValues: ing.toggleValues || []
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue