mirror of
https://github.com/gchq/CyberChef
synced 2025-12-14 07:13:18 +00:00
ESM: Added BackgroundWorkerWaiter for running Magic on output in the background
This commit is contained in:
@@ -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
|
||||
})
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user