mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 06:55:08 -04:00
ESM: Added BackgroundWorkerWaiter for running Magic on output in the background
This commit is contained in:
parent
37c8d1b7ea
commit
1ef4f71d8b
6 changed files with 229 additions and 8 deletions
|
@ -104,12 +104,16 @@ async function bake(data) {
|
|||
|
||||
self.postMessage({
|
||||
action: "bakeComplete",
|
||||
data: response
|
||||
data: Object.assign(response, {
|
||||
id: data.id
|
||||
})
|
||||
});
|
||||
} catch (err) {
|
||||
self.postMessage({
|
||||
action: "bakeError",
|
||||
data: err
|
||||
data: Object.assign(err, {
|
||||
id: data.id
|
||||
})
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue