mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-23 00:06:17 -04:00
Add support for async ops using async/await
This commit is contained in:
parent
07bb095e73
commit
c39622ed1e
5 changed files with 11 additions and 11 deletions
|
@ -73,11 +73,11 @@ App.prototype.handleError = function(err) {
|
|||
* @param {boolean} [step] - Set to true if we should only execute one operation instead of the
|
||||
* whole recipe.
|
||||
*/
|
||||
App.prototype.bake = function(step) {
|
||||
App.prototype.bake = async function(step) {
|
||||
var response;
|
||||
|
||||
try {
|
||||
response = this.chef.bake(
|
||||
response = await this.chef.bake(
|
||||
this.getInput(), // The user's input
|
||||
this.getRecipeConfig(), // The configuration of the recipe
|
||||
this.options, // Options set by the user
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue