mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-12 01:01:32 -04:00
create recipeState and hydrate recipeconfig before recipe is constructed
This commit is contained in:
parent
536a82684c
commit
d491a7f0fc
5 changed files with 127 additions and 159 deletions
|
@ -112,9 +112,9 @@ class Magic extends Operation {
|
|||
options.forEach(option => {
|
||||
// Construct recipe URL
|
||||
// Replace this Magic op with the generated recipe
|
||||
const recipeConfig = currentRecipeConfig.slice(0, this.state.progress)
|
||||
const recipeConfig = currentRecipeConfig.slice(0, this.state.progress - 1)
|
||||
.concat(option.recipe)
|
||||
.concat(currentRecipeConfig.slice(this.state.progress + 1)),
|
||||
.concat(currentRecipeConfig.slice(this.state.progress)),
|
||||
recipeURL = "recipe=" + Utils.encodeURIFragment(Utils.generatePrettyRecipe(recipeConfig));
|
||||
|
||||
let language = "",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue