mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-22 15:56:16 -04:00
Add new worker for zipping outputs.
Use bakeId to track which outputs are stale.
This commit is contained in:
parent
df20196201
commit
07021b8dd5
5 changed files with 222 additions and 14 deletions
|
@ -93,7 +93,6 @@ self.addEventListener("message", function(e) {
|
|||
async function bake(data) {
|
||||
// Ensure the relevant modules are loaded
|
||||
self.loadRequiredModules(data.recipeConfig);
|
||||
|
||||
try {
|
||||
self.inputNum = parseInt(data.inputNum, 10);
|
||||
const response = await self.chef.bake(
|
||||
|
@ -119,7 +118,8 @@ async function bake(data) {
|
|||
action: "bakeComplete",
|
||||
data: Object.assign(response, {
|
||||
id: data.id,
|
||||
inputNum: data.inputNum
|
||||
inputNum: data.inputNum,
|
||||
bakeId: data.bakeId
|
||||
})
|
||||
});
|
||||
}
|
||||
|
@ -128,7 +128,8 @@ async function bake(data) {
|
|||
action: "bakeComplete",
|
||||
data: Object.assign(response, {
|
||||
id: data.id,
|
||||
inputNum: data.inputNum
|
||||
inputNum: data.inputNum,
|
||||
bakeId: data.bakeId
|
||||
})
|
||||
}, [response.result]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue