mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
Fix stepping not working.
Use transferable object for sending arraybuffers to workers
This commit is contained in:
parent
d326cad611
commit
0e850b2a85
6 changed files with 47 additions and 32 deletions
|
@ -69,7 +69,22 @@ class ControlsWaiter {
|
|||
* Handler for the 'Step through' command. Executes the next step of the recipe.
|
||||
*/
|
||||
stepClick() {
|
||||
this.app.bake(true);
|
||||
if (this.manager.worker.step) {
|
||||
// Step has already been clicked so get the data from the output
|
||||
const activeTab = this.manager.input.getActiveTab();
|
||||
this.manager.worker.queueInput({
|
||||
input: this.manager.output.getOutput(activeTab, true),
|
||||
inputNum: activeTab
|
||||
});
|
||||
this.app.progress = this.manager.output.outputs[activeTab].progress;
|
||||
this.app.bake(true);
|
||||
} else {
|
||||
// First click of step, so get the output from the inputWorker
|
||||
this.manager.input.inputWorker.postMessage({
|
||||
action: "step",
|
||||
data: this.manager.input.getActiveTab()
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue